From f1ccc8ea707e7afda3f0a94fdfd66c2898e7d0fe Mon Sep 17 00:00:00 2001 From: Andrew Date: Thu, 15 Dec 2016 21:41:22 -0600 Subject: [PATCH] Fixed error in now() usage in template --- source/_topics/templating.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_topics/templating.markdown b/source/_topics/templating.markdown index 10ddbff78d9..af1f5f4f52c 100644 --- a/source/_topics/templating.markdown +++ b/source/_topics/templating.markdown @@ -131,7 +131,7 @@ Print out a list of all the sensor states. {{ as_timestamp(states.binary_sensor.garage_door.last_changed) }} -{{ as_timestamp(now) - as_timestamp(states.binary_sensor.garage_door.last_changed) }}{% endraw %} +{{ as_timestamp(now()) - as_timestamp(states.binary_sensor.garage_door.last_changed) }}{% endraw %} ``` ### {% linkable_title Distance examples %}