Update pages.py

This commit is contained in:
Johannes
2022-11-03 20:21:05 +01:00
committed by GitHub
parent 57df344e6e
commit f90b4609b3

View File

@@ -657,6 +657,7 @@ class LuiPagesGen(object):
brightness = "disable"
color_temp = "disable"
color = "disable"
effect_supported = "disable"
if "onoff" not in entity.attributes.supported_color_modes:
brightness = 0
@@ -679,7 +680,6 @@ class LuiPagesGen(object):
color = "enable"
else:
color = "disable"
effect_supported = "disable"
if "effect_list" in entity.attributes:
effect_supported = "enable"
color_translation = "Color"