From c981cce900970fdca626a0bf223b515325770baa Mon Sep 17 00:00:00 2001 From: justme1968 Date: Sat, 28 May 2016 18:40:01 +0000 Subject: [PATCH] 31_HUEDevice.pm: some cleanups git-svn-id: https://svn.fhem.de/fhem/trunk@11538 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/31_HUEDevice.pm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/fhem/FHEM/31_HUEDevice.pm b/fhem/FHEM/31_HUEDevice.pm index 7e7942533..fbea42336 100644 --- a/fhem/FHEM/31_HUEDevice.pm +++ b/fhem/FHEM/31_HUEDevice.pm @@ -1069,13 +1069,10 @@ HUEDevice_Parse($$) } elsif( $hash->{type} eq "Color temperature light" ) { $attr{$name}{subType} = 'ctdimmer'; - } elsif( $hash->{type} eq "Dimmable light" ) { + } elsif( $hash->{type} =~ m/Dimmable/ ) { $attr{$name}{subType} = 'dimmer'; - } elsif( $hash->{type} eq "Dimmable plug-in unit" ) { - $attr{$name}{subType} = 'dimmer'; - - } elsif( $hash->{type} =~ m'On/Off' ) { + } elsif( $hash->{type} =~ m/On.Off/ ) { $attr{$name}{subType} = 'switch'; }