mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-20 05:04:44 +01:00
Update pages.py
This commit is contained in:
@@ -372,6 +372,9 @@ class LuiPagesGen(object):
|
|||||||
currently_tanslation = get_translation(self._locale, f"frontend.ui.card.climate.currently")
|
currently_tanslation = get_translation(self._locale, f"frontend.ui.card.climate.currently")
|
||||||
current_temperature = get_attr_safe(entity, "current_temperature", "")
|
current_temperature = get_attr_safe(entity, "current_temperature", "")
|
||||||
value += f"\r\n{currently_tanslation}: {current_temperature}{temperature_unit}"
|
value += f"\r\n{currently_tanslation}: {current_temperature}{temperature_unit}"
|
||||||
|
elif entityType == "timer":
|
||||||
|
entityTypePanel = "timer"
|
||||||
|
value = entity.state
|
||||||
else:
|
else:
|
||||||
name = "unsupported"
|
name = "unsupported"
|
||||||
return f"~{entityTypePanel}~{entityId}~{icon_id}~{color}~{name}~{value}"
|
return f"~{entityTypePanel}~{entityId}~{icon_id}~{color}~{name}~{value}"
|
||||||
|
|||||||
Reference in New Issue
Block a user