fixed warning

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@5455 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2014-04-06 08:03:31 +00:00
parent 45afed5b36
commit 67e4be84a4

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 . ' %');}