2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

31_HUEDevice.pm: some cleanups

git-svn-id: https://svn.fhem.de/fhem/trunk@11538 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2016-05-28 18:40:01 +00:00
parent 121ce0f360
commit f13b90240c

View File

@ -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';
}