mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-24 00:14:26 +01:00
@@ -347,9 +347,9 @@ class LuiPagesGen(object):
|
|||||||
elif entityType == "vacuum":
|
elif entityType == "vacuum":
|
||||||
entityTypePanel = "button"
|
entityTypePanel = "button"
|
||||||
if entity.state == "docked":
|
if entity.state == "docked":
|
||||||
value = "Start"
|
value = get_translation(self._locale, f"frontend.ui.card.vacuum.actions.start_cleaning")
|
||||||
else:
|
else:
|
||||||
value = "Return"
|
value = get_translation(self._locale, f"frontend.ui.card.vacuum.actions.return_to_base")
|
||||||
elif entityType == "alarm_control_panel":
|
elif entityType == "alarm_control_panel":
|
||||||
entityTypePanel = "text"
|
entityTypePanel = "text"
|
||||||
value = get_translation(self._locale, f"frontend.state_badge.alarm_control_panel.{entity.state}")
|
value = get_translation(self._locale, f"frontend.state_badge.alarm_control_panel.{entity.state}")
|
||||||
|
|||||||
Reference in New Issue
Block a user