mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-22 07:24:24 +01:00
Fix light with brightness
This commit is contained in:
@@ -381,7 +381,7 @@ class NsPanelLovelaceUI:
|
||||
color = rgb_brightness(color, entity.attributes.brightness)
|
||||
icon_color = rgb_dec565(color)
|
||||
elif "brightness" in entity.attributes:
|
||||
color = rgb_brightness(color, [253, 216, 53])
|
||||
color = rgb_brightness([253, 216, 53], entity.attributes.brightness)
|
||||
icon_color = rgb_dec565(color)
|
||||
|
||||
return f",{item_type},{item},1,{icon_color},{name},{switch_val}"
|
||||
@@ -537,7 +537,7 @@ class NsPanelLovelaceUI:
|
||||
color = rgb_brightness(color, entity.attributes.brightness)
|
||||
icon_color = rgb_dec565(color)
|
||||
elif "brightness" in entity.attributes:
|
||||
color = rgb_brightness(color, [253, 216, 53])
|
||||
color = rgb_brightness([253, 216, 53], entity.attributes.brightness)
|
||||
icon_color = rgb_dec565(color)
|
||||
|
||||
brightness = "disable"
|
||||
|
||||
Reference in New Issue
Block a user