mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-23 07:54:25 +01:00
implement translation timer popup
This commit is contained in:
@@ -866,7 +866,7 @@ class LuiPagesGen(object):
|
|||||||
action2 = "start"
|
action2 = "start"
|
||||||
action3 = ""
|
action3 = ""
|
||||||
label1 = ""
|
label1 = ""
|
||||||
label2 = "start"
|
label2 = get_translation(self._locale, "frontend.ui.timer.actions.start")
|
||||||
label3 = ""
|
label3 = ""
|
||||||
else: #active
|
else: #active
|
||||||
editable = 0
|
editable = 0
|
||||||
@@ -880,9 +880,9 @@ class LuiPagesGen(object):
|
|||||||
action1 = "pause"
|
action1 = "pause"
|
||||||
action2 = "cancel"
|
action2 = "cancel"
|
||||||
action3 = "finish"
|
action3 = "finish"
|
||||||
label1 = "pause"
|
label1 = get_translation(self._locale, "frontend.ui.timer.actions.pause")
|
||||||
label2 = "cancel"
|
label2 = get_translation(self._locale, "frontend.ui.timer.actions.cancel")
|
||||||
label3 = "finish"
|
label3 = get_translation(self._locale, "frontend.ui.timer.actions.finish")
|
||||||
self._send_mqtt_msg(f"entityUpdateDetail~{entity_id}~~{icon_color}~{entity_id}~{min_remaining}~{sec_remaining}~{editable}~{action1}~{action2}~{action3}~{label1}~{label2}~{label3}")
|
self._send_mqtt_msg(f"entityUpdateDetail~{entity_id}~~{icon_color}~{entity_id}~{min_remaining}~{sec_remaining}~{editable}~{action1}~{action2}~{action3}~{label1}~{label2}~{label3}")
|
||||||
|
|
||||||
def send_message_page(self, ident, heading, msg, b1, b2):
|
def send_message_page(self, ident, heading, msg, b1, b2):
|
||||||
|
|||||||
Reference in New Issue
Block a user