add service button type for #253

This commit is contained in:
joBr99
2022-09-04 19:43:17 +02:00
parent daa6cb9624
commit 043fdfd728
2 changed files with 3 additions and 0 deletions

View File

@@ -298,6 +298,8 @@ class LuiController(object):
self._ha_api.get_entity(entity_id).call_service("start")
else:
self._ha_api.get_entity(entity_id).call_service("return_to_base")
elif entity_id.startswith('service'):
self._ha_api.call_service(entity_id.replace('service.', '', 1), **le.data)
# for media page
if button_type == "media-next":