mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
82_LGTV_WebOS: fix uninitialized value
git-svn-id: https://svn.fhem.de/fhem/trunk@17026 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8f61da447c
commit
de4a8b1ed0
@ -69,7 +69,7 @@ eval "use Blocking;1" or $missingModul .= "Blocking ";
|
||||
|
||||
|
||||
|
||||
my $version = "2.0.6";
|
||||
my $version = "2.0.7";
|
||||
|
||||
|
||||
|
||||
@ -976,15 +976,15 @@ sub LGTV_WebOS_WriteReadings($$) {
|
||||
}
|
||||
|
||||
|
||||
readingsBulkUpdateIfChanged($hash,'lgKey',$decode_json->{payload}{'client-key'});
|
||||
readingsBulkUpdateIfChanged($hash,'volume',$decode_json->{payload}{'volume'});
|
||||
readingsBulkUpdateIfChanged($hash,'lastResponse',$response);
|
||||
readingsBulkUpdateIfChanged($hash,'lgKey',$decode_json->{payload}{'client-key'}) if( defined($decode_json->{payload}{'client-key'}) );
|
||||
readingsBulkUpdateIfChanged($hash,'volume',$decode_json->{payload}{'volume'}) if( defined($decode_json->{payload}{'volume'}) );
|
||||
readingsBulkUpdateIfChanged($hash,'lastResponse',$response) if( defined($response) );
|
||||
|
||||
if( ReadingsVal($name,'launchApp','none') eq 'TV') {
|
||||
if( ReadingsVal($name,'launchApp','none') eq 'TV' ) {
|
||||
|
||||
readingsBulkUpdateIfChanged($hash,'channel',$decode_json->{payload}{'channelNumber'});
|
||||
readingsBulkUpdateIfChanged($hash,'channelName',$decode_json->{payload}{'channelName'});
|
||||
readingsBulkUpdateIfChanged($hash,'channelMedia',$decode_json->{payload}{'channelTypeName'});
|
||||
readingsBulkUpdateIfChanged($hash,'channel',$decode_json->{payload}{'channelNumber'}) if( defined($decode_json->{payload}{'channelNumber'}) );
|
||||
readingsBulkUpdateIfChanged($hash,'channelName',$decode_json->{payload}{'channelName'}) if( defined($decode_json->{payload}{'channelName'}) );
|
||||
readingsBulkUpdateIfChanged($hash,'channelMedia',$decode_json->{payload}{'channelTypeName'}) if( defined($decode_json->{payload}{'channelTypeName'}) );
|
||||
|
||||
} else {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user