From 5bf810ad5ab1c0b85476ed10fe6b9c262fb088bf Mon Sep 17 00:00:00 2001 From: Johannes 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: