let speaker sel actually select and fix update #608

This commit is contained in:
joBr99
2022-12-09 23:56:07 +01:00
parent 218a500d17
commit 1e3b277def

View File

@@ -171,6 +171,8 @@ class LuiController(object):
self._pages_gen.generate_fan_detail_page(entity) self._pages_gen.generate_fan_detail_page(entity)
if entity.startswith("input_select"): if entity.startswith("input_select"):
self._pages_gen.generate_input_select_detail_page(entity) self._pages_gen.generate_input_select_detail_page(entity)
if entity.startswith("media_player"):
self._pages_gen.generate_input_select_detail_page(entity)
if self._current_card.cardType == "cardThermo": if self._current_card.cardType == "cardThermo":
if entity.startswith("climate"): if entity.startswith("climate"):
self._pages_gen.generate_thermo_detail_page(entity) self._pages_gen.generate_thermo_detail_page(entity)
@@ -409,3 +411,7 @@ class LuiController(object):
option = entity.attributes.effect_list[int(value)] option = entity.attributes.effect_list[int(value)]
entity.call_service("select_effect", option=option) entity.call_service("select_effect", option=option)
if button_type == "mode-media_player":
entity = apis.ha_api.get_entity(entity_id)
option = entity.attributes.source_list[int(value)]
entity.call_service("select_source", source=option)