Update pages.py #946

This commit is contained in:
Johannes
2023-08-23 18:30:33 +02:00
committed by GitHub
parent 5a07523a86
commit cf1acdefff

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":
if self._config.get("model") == "us-p" and cardType in ["cardGrid", "cardGrid2", "cardEntities"]:
value = entity.state[:4]
if value[-1] == ".":
value = value[:-1]