implemented #479

This commit is contained in:
Johannes
2022-11-03 17:06:56 +01:00
parent f008c87f94
commit ae63ccd657
2 changed files with 4 additions and 0 deletions

View File

@@ -326,6 +326,9 @@ class LuiPagesGen(object):
elif entityType == "script":
entityTypePanel = "button"
value = get_translation(self._locale, "frontend.ui.card.script.run")
override = item.entity_input_config.get("action_name")
if override is not None:
value = override
elif entityType == "lock":
entityTypePanel = "button"
value = get_translation(self._locale, "frontend.ui.card.lock.lock") if entity.state == "unlocked" else get_translation(self._locale, "frontend.ui.card.lock.unlock")