31_HUEDevice.pm: handle spaces in classnames for room icon creation

git-svn-id: https://svn.fhem.de/fhem/trunk@19801 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2019-07-08 17:17:48 +00:00
parent bdcfedbd1b
commit 31f04b35f6

View File

@@ -1191,6 +1191,7 @@ HUEDeviceSetIcon($;$)
} elsif( $hash->{class} ) {
my $class = lc( $hash->{class} );
$class =~ s/ room//;
$class =~ s/ /_/;
$attr{$name}{icon} = "hue_room_$class";
}