From 9ab543ab3dfe05ad2899a05c6c3154b1762e3769 Mon Sep 17 00:00:00 2001 From: Brad Dixon Date: Mon, 11 Mar 2019 03:51:22 -0400 Subject: [PATCH] Add as_timestamp() to Jinja filters. (#21910) Add as_timestamp() to Jinja filters --- homeassistant/helpers/template.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/helpers/template.py b/homeassistant/helpers/template.py index 03ae37843d8..d79c68ffd5e 100644 --- a/homeassistant/helpers/template.py +++ b/homeassistant/helpers/template.py @@ -657,6 +657,7 @@ ENV.filters['sin'] = sine ENV.filters['cos'] = cosine ENV.filters['tan'] = tangent ENV.filters['sqrt'] = square_root +ENV.filters['as_timestamp'] = forgiving_as_timestamp ENV.filters['timestamp_custom'] = timestamp_custom ENV.filters['timestamp_local'] = timestamp_local ENV.filters['timestamp_utc'] = timestamp_utc