bug fix for color-icons == 2 and pct = 100
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@3315 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -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>';
|
||||
|
||||
Reference in New Issue
Block a user