mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-16 09:56:58 +01:00
Update pages.py #946
This commit is contained in:
@@ -299,7 +299,7 @@ class LuiPagesGen(object):
|
|||||||
value = entity.state
|
value = entity.state
|
||||||
|
|
||||||
# limit value to 4 chars on us-p
|
# 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]
|
value = entity.state[:4]
|
||||||
if value[-1] == ".":
|
if value[-1] == ".":
|
||||||
value = value[:-1]
|
value = value[:-1]
|
||||||
|
|||||||
Reference in New Issue
Block a user