fixed warning
git-svn-id: https://svn.fhem.de/fhem/trunk@5457 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -750,9 +750,10 @@ HUEDevice_Parse($$)
|
||||
}
|
||||
else
|
||||
{
|
||||
$on = 0;
|
||||
$s = 'off';
|
||||
$percent = 0;
|
||||
if( defined($on) && $on != $hash->{helper}{on} ) {readingsBulkUpdate($hash,"onoff",0);}
|
||||
if( $on != $hash->{helper}{on} ) {readingsBulkUpdate($hash,"onoff",0);}
|
||||
}
|
||||
|
||||
if( $percent != $hash->{helper}{percent} ) {readingsBulkUpdate($hash,"level", $percent . ' %');}
|
||||
|
||||
Reference in New Issue
Block a user