mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-17 23:46:03 +00:00
Color::devStateIcon: ignore non digits in pct reading
git-svn-id: https://svn.fhem.de/fhem/trunk@8134 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
99086ee987
commit
815bd74578
@ -387,6 +387,8 @@ devStateIcon($$@)
|
||||
$percent = ::Value($name);
|
||||
}
|
||||
|
||||
$percent =~ s/[^\d]//g if( $percent );
|
||||
|
||||
return ".*:light_question" if( !defined($percent) );
|
||||
|
||||
my $s = $dim_values{int($percent/7)};
|
||||
|
Loading…
x
Reference in New Issue
Block a user