mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-20 22:47:01 +01:00
Update pages.py
This commit is contained in:
@@ -657,6 +657,7 @@ class LuiPagesGen(object):
|
|||||||
brightness = "disable"
|
brightness = "disable"
|
||||||
color_temp = "disable"
|
color_temp = "disable"
|
||||||
color = "disable"
|
color = "disable"
|
||||||
|
effect_supported = "disable"
|
||||||
|
|
||||||
if "onoff" not in entity.attributes.supported_color_modes:
|
if "onoff" not in entity.attributes.supported_color_modes:
|
||||||
brightness = 0
|
brightness = 0
|
||||||
@@ -679,7 +680,6 @@ class LuiPagesGen(object):
|
|||||||
color = "enable"
|
color = "enable"
|
||||||
else:
|
else:
|
||||||
color = "disable"
|
color = "disable"
|
||||||
effect_supported = "disable"
|
|
||||||
if "effect_list" in entity.attributes:
|
if "effect_list" in entity.attributes:
|
||||||
effect_supported = "enable"
|
effect_supported = "enable"
|
||||||
color_translation = "Color"
|
color_translation = "Color"
|
||||||
|
|||||||
Reference in New Issue
Block a user