mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 01:06:52 +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
|
platform: template
|
||||||
sensors:
|
sensors:
|
||||||
solaredge_energy_this_year_template:
|
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 %}
|
{% endraw %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user