Fix indenting of template component examples (#9282)

This commit is contained in:
David Beitey 2019-04-24 02:40:18 +10:00 committed by Klaas Schoute
parent ad39b4733e
commit 9dd7611c92

View File

@ -260,7 +260,7 @@ This template contains no entities that will trigger an update, so we add an `en
{% raw %} {% raw %}
```yaml ```yaml
sensor: sensor:
- platform: template - platform: template
sensors: sensors:
nonsmoker: nonsmoker:
value_template: '{{ (( as_timestamp(now()) - as_timestamp(strptime("06.07.2018", "%d.%m.%Y")) ) / 86400 ) | round(2) }}' value_template: '{{ (( as_timestamp(now()) - as_timestamp(strptime("06.07.2018", "%d.%m.%Y")) ) / 86400 ) | round(2) }}'
@ -277,7 +277,7 @@ An alternative to this is to create an interval-based automation that calls the
{% raw %} {% raw %}
```yaml ```yaml
sensor: sensor:
- platform: template - platform: template
sensors: sensors:
nonsmoker: nonsmoker:
value_template: '{{ (( as_timestamp(now()) - as_timestamp(strptime("06.07.2018", "%d.%m.%Y")) ) / 86400 ) | round(2) }}' value_template: '{{ (( as_timestamp(now()) - as_timestamp(strptime("06.07.2018", "%d.%m.%Y")) ) / 86400 ) | round(2) }}'