implemented #479

This commit is contained in:
joBr99
2022-11-03 17:06:56 +01:00
parent 39cde58753
commit 51d13ea6cb
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")

View File

@@ -16,6 +16,7 @@ key | optional | type | default | description
`state_not` | True | string | `None` | Only displayed if Entity state is unequal to this value
`status` | True | string | `None` | Only valid for navigate and service items, adds a entity to track state for the icon
`assumed_state` | True | string | `None` | Only for cover items, up, down and stop buttons are always shown
`action_name` | True | string | `None` | Only valid for script; Button label
## Override Icons or Names