Update pages.py

This commit is contained in:
Johannes
2023-08-23 18:34:16 +02:00
committed by GitHub
parent cf1acdefff
commit 11106eb778

View File

@@ -299,7 +299,7 @@ class LuiPagesGen(object):
value = entity.state
# limit value to 4 chars on us-p
if self._config.get("model") == "us-p" and cardType in ["cardGrid", "cardGrid2", "cardEntities"]:
if self._config.get("model") == "us-p" and cardType == "cardEntities":
value = entity.state[:4]
if value[-1] == ".":
value = value[:-1]