mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-24 00:14:26 +01:00
Update pages.py
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user