From 6a8acf461af8ce3c34b60123a39c759f7ab7112c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul=20=28ACSONE=29?= Date: Sun, 5 Feb 2017 21:15:51 +0100 Subject: [PATCH] document min/max jinja filters --- source/_topics/templating.markdown | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/_topics/templating.markdown b/source/_topics/templating.markdown index 7b71cabebc97..da0434fa6686 100644 --- a/source/_topics/templating.markdown +++ b/source/_topics/templating.markdown @@ -81,6 +81,8 @@ Home Assistant adds extensions to allow templates to access all of the current s - Filter `timestamp_local` will convert an UNIX timestamp to local time/data. - Filter `timestamp_utc` will convert an UNIX timestamp to UTC time/data. - Filter `timestamp_custom(format_string, local_boolean)` will convert an UNIX timestamp to a custom format, the use of a local timestamp is default, supporting [Python format options](https://docs.python.org/3/library/time.html#time.strftime). +- Filter `max` will obtain the larget item in a sequence. +- Filter `min` will obtain the smallest item in a sequence. [strp-format]: https://docs.python.org/3.4/library/datetime.html#strftime-and-strptime-behavior