This commit is contained in:
Marko Oldenburg 2017-10-09 22:08:47 +02:00
parent 5d66cdc955
commit 8a17d3f744

View File

@ -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);