This commit is contained in:
joBr99
2022-09-04 20:45:23 +02:00
committed by GitHub
parent 59b7e591e8
commit 61c6e717e2

View File

@@ -585,6 +585,9 @@ class LuiPagesGen(object):
brightness = "disable"
color_temp = "disable"
color = "disable"
if "onoff" not in entity.attributes.supported_color_modes:
brightness = 0
if entity.state == "on":
if "brightness" in entity.attributes:
# scale 0-255 brightness from ha to 0-100