2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 10:46:53 +00:00

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:
justme-1968 2019-07-08 17:17:48 +00:00
parent b46808b46c
commit 1401269d18

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";
}