Fix Tesla dashboard entities and charging plan view

This commit is contained in:
2026-04-09 18:59:23 +02:00
parent e541b658bd
commit 7a61bb50d0
3 changed files with 92 additions and 24 deletions
+1 -1
View File
@@ -16,7 +16,7 @@
state: >
{% set val = states('sensor.snowywhite_range') %}
{% if val not in ['unknown','unavailable',''] %}
{{ val.replace(' km','') | float }}
{{ val.replace(' km','') | float | round(0) | int }}
{% else %}
0
{% endif %}