From d7a9b7bffccd15a2cddd53a70444614cb6d37a12 Mon Sep 17 00:00:00 2001 From: joBr99 <29555657+joBr99@users.noreply.github.com> Date: Sat, 28 May 2022 22:00:39 +0200 Subject: [PATCH] Update pages.py --- apps/nspanel-lovelace-ui/luibackend/pages.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/nspanel-lovelace-ui/luibackend/pages.py b/apps/nspanel-lovelace-ui/luibackend/pages.py index 90b471a6..53ba87c4 100644 --- a/apps/nspanel-lovelace-ui/luibackend/pages.py +++ b/apps/nspanel-lovelace-ui/luibackend/pages.py @@ -280,8 +280,7 @@ class LuiPagesGen(object): heading = title if title != "unknown" else entity.attributes.friendly_name 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)} \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) max_temp = int(get_attr_safe(entity, "max_temp", 0)*10) step_temp = int(get_attr_safe(entity, "target_temp_step", 0.5)*10)