From f92c0af752832ab5680cc29e9f44315bc14d3347 Mon Sep 17 00:00:00 2001 From: Johannes Date: Thu, 2 Jun 2022 21:20:52 +0200 Subject: [PATCH] fix --- apps/nspanel-lovelace-ui/luibackend/pages.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/nspanel-lovelace-ui/luibackend/pages.py b/apps/nspanel-lovelace-ui/luibackend/pages.py index 9e34dc44..a694e163 100644 --- a/apps/nspanel-lovelace-ui/luibackend/pages.py +++ b/apps/nspanel-lovelace-ui/luibackend/pages.py @@ -425,8 +425,8 @@ class LuiPagesGen(object): add_btn=f"{get_icon_id('progress-alert')}~{rgb_dec565([243,179,0])}~opnSensorNotify" if alarmBtn is not None and type(alarmBtn) is dict: entity = alarmBtn.get("entity") - icon = alarmBtn.get("icon", "progress-alert") - add_btn=f"{get_icon_id(icon)}~{rgb_dec565([243,179,0])}~{entity}" + iconnav = alarmBtn.get("icon", "progress-alert") + add_btn=f"{get_icon_id(iconnav)}~{rgb_dec565([243,179,0])}~{entity}" # add padding to arm buttons arm_buttons = ""