2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

fixed warning

git-svn-id: https://svn.fhem.de/fhem/trunk@5456 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2014-04-06 08:11:16 +00:00
parent a5e428cfe5
commit 4f804b09a3

View File

@ -752,7 +752,7 @@ HUEDevice_Parse($$)
{ {
$s = 'off'; $s = 'off';
$percent = 0; $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 . ' %');} if( $percent != $hash->{helper}{percent} ) {readingsBulkUpdate($hash,"level", $percent . ' %');}