fixed warning

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

View File

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