fixed warning

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@5457 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2014-04-06 08:12:50 +00:00
parent 31bf293169
commit 7300478e33

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