This commit is contained in:
joBr99
2022-05-28 23:27:03 +02:00
parent 29ea5993e6
commit 3b6472488b
2 changed files with 5 additions and 2 deletions

View File

@@ -281,7 +281,10 @@ class LuiPagesGen(object):
current_temp = get_attr_safe(entity, "current_temperature", "")
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 = ""
if status != "":
state_value = f"{get_translation(self._locale, status)}\r\n"
state_value += "({get_translation(self._locale, entity.state)})"
min_temp = int(get_attr_safe(entity, "min_temp", 0)*10)
max_temp = int(get_attr_safe(entity, "max_temp", 0)*10)
step_temp = int(get_attr_safe(entity, "target_temp_step", 0.5)*10)