From 4f804b09a3d9e25e49909f35726be7eed5a6b8d0 Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Sun, 6 Apr 2014 08:11:16 +0000 Subject: [PATCH] fixed warning git-svn-id: https://svn.fhem.de/fhem/trunk@5456 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/31_HUEDevice.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/FHEM/31_HUEDevice.pm b/fhem/FHEM/31_HUEDevice.pm index c09b51215..590117370 100644 --- a/fhem/FHEM/31_HUEDevice.pm +++ b/fhem/FHEM/31_HUEDevice.pm @@ -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 . ' %');}