mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-23 07:54:25 +01:00
fix path
This commit is contained in:
@@ -39,4 +39,4 @@ def get_translation(locale, lookupstr):
|
|||||||
res = lookup(path_frontend_file, path_backend_file, lookupstr)
|
res = lookup(path_frontend_file, path_backend_file, lookupstr)
|
||||||
return res
|
return res
|
||||||
|
|
||||||
#print(get_translation("en_US", "frontend.ui.card.button.press"))
|
#print(get_translation("en_US", "frontend.state_attributes.climate.hvac_action.idle"))
|
||||||
@@ -290,9 +290,9 @@ class LuiPagesGen(object):
|
|||||||
hvac_action = get_attr_safe(entity, "hvac_action", "")
|
hvac_action = get_attr_safe(entity, "hvac_action", "")
|
||||||
state_value = ""
|
state_value = ""
|
||||||
if hvac_action != "":
|
if hvac_action != "":
|
||||||
state_value = get_translation(self._locale, f"state_attributes.climate.hvac_action.{hvac_action}")
|
state_value = get_translation(self._locale, f"frontend.state_attributes.climate.hvac_action.{hvac_action}")
|
||||||
state_value += "\r\n("
|
state_value += "\r\n("
|
||||||
state_value += get_translation(self._locale, f"state_attributes.climate.hvac_action.{entity.state}")
|
state_value += get_translation(self._locale, f"backend.component.climate.state._.{entity.state}")
|
||||||
if hvac_action != "":
|
if hvac_action != "":
|
||||||
state_value += ")"
|
state_value += ")"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user