mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 08:46:51 +00:00
Updating template example (#9891)
* Updating template example
There was a (') in the line '{{(states('sensor.solaredge_energy_this_year') | float / 1000) | round(2)}}'
This caused yaml issues the update is '{{(states(sensor.solaredge_energy_this_year') | float / 1000) | round(2)}}'
* ✏️ Tweak
This commit is contained in:
parent
d0385649ba
commit
4c6f3b8a03
@ -127,6 +127,6 @@ sensors:
|
||||
platform: template
|
||||
sensors:
|
||||
solaredge_energy_this_year_template:
|
||||
value_template: '{{(states('sensor.solaredge_energy_this_year') | float / 1000) | round(2)}}'
|
||||
value_template: "{{ (states('sensor.solaredge_energy_this_year') | float / 1000) | round(2) }}"
|
||||
```
|
||||
{% endraw %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user