Skip to content

Commit 7b9a54f

Browse files
sbidoulfabaff
authored andcommitted
document min/max jinja filters (home-assistant#1977)
1 parent 2d9a7e8 commit 7b9a54f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/_topics/templating.markdown

+2
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ Home Assistant adds extensions to allow templates to access all of the current s
8181
- Filter `timestamp_local` will convert an UNIX timestamp to local time/data.
8282
- Filter `timestamp_utc` will convert an UNIX timestamp to UTC time/data.
8383
- 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).
84+
- Filter `max` will obtain the larget item in a sequence.
85+
- Filter `min` will obtain the smallest item in a sequence.
8486

8587
[strp-format]: https://docs.python.org/3.4/library/datetime.html#strftime-and-strptime-behavior
8688

0 commit comments

Comments
 (0)