From 8a17d3f74442f4e8e69b0ba8cbc85219f111e0a3 Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Mon, 9 Oct 2017 22:08:47 +0200 Subject: [PATCH] bugfixes --- 82_LGTV_WebOS.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/82_LGTV_WebOS.pm b/82_LGTV_WebOS.pm index b10bd01..4f60766 100644 --- a/82_LGTV_WebOS.pm +++ b/82_LGTV_WebOS.pm @@ -606,7 +606,7 @@ sub LGTV_WebOS_Close($) { delete($hash->{CD}); delete($selectlist{$name}); - readingsSingleUpdate($hash, 'state', 'off', 1); + readingsSingleUpdate($hash,'state','off',1); Log3 $name, 4, "LGTV_WebOS ($name) - Socket Disconnected"; } @@ -785,7 +785,7 @@ sub LGTV_WebOS_ResponseProcessing($$) { if ($keyAccept eq $expectedResponse) { Log3 $name, 3, "LGTV_WebOS ($name) - Sucessfull WS connection to $hash->{HOST}"; - readingsSingleUpdate($hash, 'state', 'on', 1 ); + readingsSingleUpdate($hash,'state','on',1); } else { LGTV_WebOS_Close($hash);