mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-22 14:16:42 +00:00
fixed bug in FW_dev2image() that prevented icon retrieval for "0" states
git-svn-id: https://svn.fhem.de/fhem/trunk@1921 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
979bf952c0
commit
8ce894a161
@ -2209,7 +2209,7 @@ FW_dev2image($)
|
|||||||
return "" if(!$name || !$d);
|
return "" if(!$name || !$d);
|
||||||
|
|
||||||
my ($type, $state) = ($d->{TYPE}, $d->{STATE});
|
my ($type, $state) = ($d->{TYPE}, $d->{STATE});
|
||||||
return "" if(!$type || !$state);
|
return "" if(!$type || !defined($state));
|
||||||
|
|
||||||
my (undef, $rstate) = ReplaceEventMap($name, [undef, $state], 0);
|
my (undef, $rstate) = ReplaceEventMap($name, [undef, $state], 0);
|
||||||
$state =~ s/ .*//; # Want to be able to have icons for "on-for-timer xxx"
|
$state =~ s/ .*//; # Want to be able to have icons for "on-for-timer xxx"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user