From 5829f348ec6ee4e3ad1fb964c654ebe2f3c2d33b Mon Sep 17 00:00:00 2001 From: Villhellm Date: Fri, 6 Sep 2019 11:52:34 -0700 Subject: [PATCH] fixed templates (#10298) --- source/_components/template.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/_components/template.markdown b/source/_components/template.markdown index cf0155e14b2..e8f5425de56 100644 --- a/source/_components/template.markdown +++ b/source/_components/template.markdown @@ -258,7 +258,7 @@ sensor: - platform: template sensors: 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) }}" entity_id: sensor.date friendly_name: 'Not smoking' unit_of_measurement: "Days" @@ -275,7 +275,7 @@ sensor: - platform: template sensors: 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) }}" entity_id: [] friendly_name: 'Not smoking' unit_of_measurement: "Days"