mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-21 23:14:25 +01:00
fix lock button text
This commit is contained in:
@@ -174,7 +174,7 @@ class LuiPagesGen(object):
|
||||
if entityType == "lock":
|
||||
icon_id = get_icon_id_ha("lock", state=entity.state, overwrite=icon)
|
||||
icon_color = self.get_entity_color(entity)
|
||||
text = get_translation(self._locale,"lock") if entity.state == "unlocked" else get_translation(self._locale,"lock")
|
||||
text = get_translation(self._locale,"lock") if entity.state == "unlocked" else get_translation(self._locale,"unlock")
|
||||
return f"~button~{entityId}~{icon_id}~{icon_color}~{name}~{text}"
|
||||
if entityType == "number":
|
||||
icon_id = get_icon_id_ha("number", overwrite=icon)
|
||||
|
||||
Reference in New Issue
Block a user