From ccc413269fb7992623b0e9f5a095599bc5ad711c Mon Sep 17 00:00:00 2001 From: joBr99 <29555657+joBr99@users.noreply.github.com> Date: Tue, 14 Jun 2022 20:52:50 +0200 Subject: [PATCH] change char cap for sensors on cardGird --- apps/nspanel-lovelace-ui/luibackend/pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/nspanel-lovelace-ui/luibackend/pages.py b/apps/nspanel-lovelace-ui/luibackend/pages.py index 09eabb20..968ffc71 100644 --- a/apps/nspanel-lovelace-ui/luibackend/pages.py +++ b/apps/nspanel-lovelace-ui/luibackend/pages.py @@ -234,7 +234,7 @@ class LuiPagesGen(object): unit_of_measurement = entity.attributes.get("unit_of_measurement", "") value = entity.state + " " + unit_of_measurement if cardType == "cardGrid" and entityType == "sensor": - icon_id = entity.state[:4] + icon_id = entity.state[:3] if icon_id[-1] == ".": icon_id = icon_id[:-1] else: