Update pages.py

This commit is contained in:
joBr99
2022-05-28 22:02:10 +02:00
committed by GitHub
parent d7a9b7bffc
commit 3d10ffe0f4

View File

@@ -280,6 +280,7 @@ class LuiPagesGen(object):
heading = title if title != "unknown" else entity.attributes.friendly_name heading = title if title != "unknown" else entity.attributes.friendly_name
current_temp = get_attr_safe(entity, "current_temperature", "") current_temp = get_attr_safe(entity, "current_temperature", "")
dest_temp = int(get_attr_safe(entity, "temperature", 0)*10) dest_temp = int(get_attr_safe(entity, "temperature", 0)*10)
status = get_attr_safe(entity, "hvac_action", "")
state_value = f"{get_translation(self._locale,status)}\r\n({get_translation(self._locale,entity.state)})" state_value = f"{get_translation(self._locale,status)}\r\n({get_translation(self._locale,entity.state)})"
min_temp = int(get_attr_safe(entity, "min_temp", 0)*10) min_temp = int(get_attr_safe(entity, "min_temp", 0)*10)
max_temp = int(get_attr_safe(entity, "max_temp", 0)*10) max_temp = int(get_attr_safe(entity, "max_temp", 0)*10)