mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
bug fix for color-icons == 2 and pct = 100
git-svn-id: https://svn.fhem.de/fhem/trunk@3315 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
dcaae573a1
commit
6636340d40
@ -90,7 +90,7 @@ HUEDevice_devStateIcon($)
|
||||
my $s = $dim_values{int($percent/7)};
|
||||
|
||||
return ".*:$s@#".CommandGet("","$name RGB").":toggle" if( $percent < 100 && AttrVal($name, "color-icons", 0) == 2 );
|
||||
return ".*:on@#".CommandGet("","$name rgb").":toggle" if( AttrVal($name, "color-icons", 0) == 1 );
|
||||
return ".*:on@#".CommandGet("","$name rgb").":toggle" if( AttrVal($name, "color-icons", 0) != 0 );
|
||||
|
||||
return '<div style="width:32px;height:19px;'.
|
||||
'border:1px solid #fff;border-radius:8px;background-color:#'.CommandGet("","$name rgb").';"></div>';
|
||||
|
Loading…
Reference in New Issue
Block a user