mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
fixed warning
git-svn-id: https://svn.fhem.de/fhem/trunk@5456 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a5e428cfe5
commit
4f804b09a3
@ -752,7 +752,7 @@ HUEDevice_Parse($$)
|
||||
{
|
||||
$s = 'off';
|
||||
$percent = 0;
|
||||
if( $on && $on != $hash->{helper}{on} ) {readingsBulkUpdate($hash,"onoff",0);}
|
||||
if( defined($on) && $on != $hash->{helper}{on} ) {readingsBulkUpdate($hash,"onoff",0);}
|
||||
}
|
||||
|
||||
if( $percent != $hash->{helper}{percent} ) {readingsBulkUpdate($hash,"level", $percent . ' %');}
|
||||
|
Loading…
Reference in New Issue
Block a user