Skip to content

Commit 5829f34

Browse files
Villhellmfrenck
authored andcommitted
fixed templates (home-assistant#10298)
1 parent e4b8ecf commit 5829f34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/_components/template.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ sensor:
258258
- platform: template
259259
sensors:
260260
nonsmoker:
261-
value_template: '{{ (( as_timestamp(now()) - as_timestamp(strptime("06.07.2018", "%d.%m.%Y")) ) / 86400 ) | round(2) }}'
261+
value_template: "{{ (( as_timestamp(now()) - as_timestamp(strptime('06.07.2018', '%d.%m.%Y')) ) / 86400 ) | round(2) }}"
262262
entity_id: sensor.date
263263
friendly_name: 'Not smoking'
264264
unit_of_measurement: "Days"
@@ -275,7 +275,7 @@ sensor:
275275
- platform: template
276276
sensors:
277277
nonsmoker:
278-
value_template: '{{ (( as_timestamp(now()) - as_timestamp(strptime("06.07.2018", "%d.%m.%Y")) ) / 86400 ) | round(2) }}'
278+
value_template: "{{ (( as_timestamp(now()) - as_timestamp(strptime('06.07.2018', '%d.%m.%Y')) ) / 86400 ) | round(2) }}"
279279
entity_id: []
280280
friendly_name: 'Not smoking'
281281
unit_of_measurement: "Days"

0 commit comments

Comments
 (0)