fixed warning

git-svn-id: https://svn.fhem.de/fhem/trunk@5455 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2014-04-06 08:03:31 +00:00
parent 0d89cdc55a
commit 8281c3fc87

View File

@@ -752,7 +752,7 @@ HUEDevice_Parse($$)
{
$s = 'off';
$percent = 0;
if( $on != $hash->{helper}{on} ) {readingsBulkUpdate($hash,"onoff",0);}
if( $on && $on != $hash->{helper}{on} ) {readingsBulkUpdate($hash,"onoff",0);}
}
if( $percent != $hash->{helper}{percent} ) {readingsBulkUpdate($hash,"level", $percent . ' %');}