Update pages.py

This commit is contained in:
Johannes
2022-12-20 20:39:36 +01:00
committed by GitHub
parent f88e15f75f
commit 979fe3d63b

View File

@@ -372,6 +372,9 @@ class LuiPagesGen(object):
currently_tanslation = get_translation(self._locale, f"frontend.ui.card.climate.currently")
current_temperature = get_attr_safe(entity, "current_temperature", "")
value += f"\r\n{currently_tanslation}: {current_temperature}{temperature_unit}"
elif entityType == "timer":
entityTypePanel = "timer"
value = entity.state
else:
name = "unsupported"
return f"~{entityTypePanel}~{entityId}~{icon_id}~{color}~{name}~{value}"