fix uninitialized value
This commit is contained in:
parent
de0426c1a9
commit
a7d2d705c7
@ -69,7 +69,7 @@ eval "use Blocking;1" or $missingModul .= "Blocking ";
|
||||
|
||||
|
||||
|
||||
my $version = "2.0.6";
|
||||
my $version = "2.0.7";
|
||||
|
||||
|
||||
|
||||
@ -976,11 +976,11 @@ sub LGTV_WebOS_WriteReadings($$) {
|
||||
}
|
||||
|
||||
|
||||
readingsBulkUpdateIfChanged($hash,'lgKey',$decode_json->{payload}{'client-key'});
|
||||
readingsBulkUpdateIfChanged($hash,'volume',$decode_json->{payload}{'volume'});
|
||||
readingsBulkUpdateIfChanged($hash,'lgKey',$decode_json->{payload}{'client-key'}) if( defined($decode_json->{payload}) );
|
||||
readingsBulkUpdateIfChanged($hash,'volume',$decode_json->{payload}{'volume'}) if( defined($decode_json->{payload}) );
|
||||
readingsBulkUpdateIfChanged($hash,'lastResponse',$response);
|
||||
|
||||
if( ReadingsVal($name,'launchApp','none') eq 'TV') {
|
||||
if( defined($decode_json->{payload}) and ReadingsVal($name,'launchApp','none') eq 'TV') {
|
||||
|
||||
readingsBulkUpdateIfChanged($hash,'channel',$decode_json->{payload}{'channelNumber'});
|
||||
readingsBulkUpdateIfChanged($hash,'channelName',$decode_json->{payload}{'channelName'});
|
||||
|
Loading…
Reference in New Issue
Block a user