mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-16 09:56:58 +01:00
test for #512
This commit is contained in:
@@ -400,7 +400,9 @@ class LuiPagesGen(object):
|
|||||||
dest_temp2 = ""
|
dest_temp2 = ""
|
||||||
if dest_temp is None:
|
if dest_temp is None:
|
||||||
dest_temp = get_attr_safe(entity, "target_temp_high", 0)
|
dest_temp = get_attr_safe(entity, "target_temp_high", 0)
|
||||||
dest_temp2 = int(get_attr_safe(entity, "target_temp_low", 0)*10)
|
dest_temp2 = get_attr_safe(entity, "target_temp_low", None)
|
||||||
|
if dest_temp2 != None and dest_temp2 != "null":
|
||||||
|
dest_temp2 = int(dest_temp2*10)
|
||||||
dest_temp = int(dest_temp*10)
|
dest_temp = int(dest_temp*10)
|
||||||
|
|
||||||
hvac_action = get_attr_safe(entity, "hvac_action", "")
|
hvac_action = get_attr_safe(entity, "hvac_action", "")
|
||||||
|
|||||||
Reference in New Issue
Block a user