mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-24 00:14:26 +01:00
limit number of options for effects for now
This commit is contained in:
@@ -814,7 +814,7 @@ class LuiPagesGen(object):
|
|||||||
if ha_type == "input_select":
|
if ha_type == "input_select":
|
||||||
options = entity.attributes.get("options", [])
|
options = entity.attributes.get("options", [])
|
||||||
if ha_type == "light":
|
if ha_type == "light":
|
||||||
options = entity.attributes.get("effect_list", [])
|
options = entity.attributes.get("effect_list", [])[:15]
|
||||||
options = "?".join(options)
|
options = "?".join(options)
|
||||||
self._send_mqtt_msg(f"entityUpdateDetail2~{entity_id}~~{icon_color}~{ha_type}~{entity.state}~{options}~")
|
self._send_mqtt_msg(f"entityUpdateDetail2~{entity_id}~~{icon_color}~{ha_type}~{entity.state}~{options}~")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user