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:
@@ -1191,6 +1191,7 @@ HUEDeviceSetIcon($;$)
|
||||
} elsif( $hash->{class} ) {
|
||||
my $class = lc( $hash->{class} );
|
||||
$class =~ s/ room//;
|
||||
$class =~ s/ /_/;
|
||||
|
||||
$attr{$name}{icon} = "hue_room_$class";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user