fixed warning

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@5457 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2014-04-06 08:12:50 +00:00
parent 81deae1709
commit 792d724880

View File

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