Update pages.py

This commit is contained in:
Johannes
2022-11-29 19:04:28 +01:00
committed by GitHub
parent 527c5f5fcc
commit 07f8a347ff

View File

@@ -819,7 +819,7 @@ class LuiPagesGen(object):
icon_color = 0
ha_type = entity_id.split(".")[0]
icon_color = self.get_entity_color(entity, ha_type=ha_type)
if ha_type == "input_select":
if ha_type in ["input_select", "select"]:
options = entity.attributes.get("options", [])
if ha_type == "light":
options = entity.attributes.get("effect_list", [])[:15]