fix climate

This commit is contained in:
Johannes
2022-06-12 13:28:00 +02:00
parent 70f95b9634
commit 18e1f508ba
5 changed files with 60 additions and 1 deletions

View File

@@ -298,6 +298,7 @@ class LuiPagesGen(object):
heading = title if title != "unknown" else entity.attributes.friendly_name
current_temp = get_attr_safe(entity, "current_temperature", "")
dest_temp = get_attr_safe(entity, "temperature", None)
dest_temp2 = ""
if dest_temp is None:
dest_temp = get_attr_safe(entity, "target_temp_high", 0)
dest_temp2 = int(get_attr_safe(entity, "target_temp_low", 0)*10)