From 642bc31646d20ea293013d5e93d7303b4ae85d1c Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Mon, 16 Sep 2013 18:25:35 +0000 Subject: [PATCH] fixed undef warning git-svn-id: https://svn.fhem.de/fhem/trunk@3917 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 c56978ba1..ccb31ae9c 100644 --- a/fhem/FHEM/31_HUEDevice.pm +++ b/fhem/FHEM/31_HUEDevice.pm @@ -528,7 +528,7 @@ HUEDevice_GetUpdate($) $attr{$name}{devStateIcon} = '{(HUEDevice_devStateIcon($name),"toggle")}' if( !defined( $attr{$name}{devStateIcon} ) ); - if( !defined( $attr{$name}{webCmd} ) ) { + if( !defined($attr{$name}{webCmd}) && defined($attr{$name}{subType}) ) { $attr{$name}{webCmd} = 'rgb:rgb ff0000:rgb 98FF23:rgb 0000ff:toggle:on:off' if( $attr{$name}{subType} eq "colordimmer" ); $attr{$name}{webCmd} = 'rgb:rgb ff0000:rgb DEFF26:rgb 0000ff:toggle:on:off' if( AttrVal($name, "model", "") eq "LCT001" ); $attr{$name}{webCmd} = 'pct:toggle:on:off' if( $attr{$name}{subType} eq "dimmer" );