patch-uninitializedValue #7

Merged
marko merged 2 commits from patch-uninitializedValue into dev 2022-03-13 10:15:56 +00:00
2 changed files with 4 additions and 5 deletions
Showing only changes of commit fee3cf2d00 - Show all commits

View File

@ -1,2 +1,2 @@
UPD 2022-03-13_07:23:31 18968 FHEM/82_LGTV_WebOS.pm UPD 2022-03-13_11:13:55 18968 FHEM/82_LGTV_WebOS.pm
UPD 2022-03-13_07:23:19 54336 lib/FHEM/Devices/LGTV/LGTVWebOS.pm UPD 2022-03-13_11:13:52 54282 lib/FHEM/Devices/LGTV/LGTVWebOS.pm

View File

@ -361,7 +361,7 @@ sub TimerStatusRequest {
} }
else { else {
::readingsSingleUpdate( $hash, 'state', 'off', 1 ) ::readingsBulkUpdateIfChanged( $hash, 'state', 'off' )
if ( ::ReadingsVal( $name, 'state', 'off' ) ne 'off' ); if ( ::ReadingsVal( $name, 'state', 'off' ) ne 'off' );
Presence($hash) Presence($hash)
@ -1288,8 +1288,7 @@ sub WriteReadings {
if ( exists( $decode_json->{payload}{'channelName'} ) ); if ( exists( $decode_json->{payload}{'channelName'} ) );
::readingsBulkUpdateIfChanged( $hash, 'channelMedia', ::readingsBulkUpdateIfChanged( $hash, 'channelMedia',
$decode_json->{payload}{'channelTypeName'} ) $decode_json->{payload}{'channelTypeName'} )
if ( exists( $decode_json->{payload}{'channelTypeName'} ) if ( exists( $decode_json->{payload}{'channelTypeName'} ) );
&& $decode_json->{payload}{'channelTypeName'} );
} }
else { else {