From b80d69c22c41f24161a0a1f54976fc41a1648b30 Mon Sep 17 00:00:00 2001 From: Mathew Peterson Date: Mon, 27 Feb 2017 04:31:52 -0600 Subject: [PATCH] Updates round filter documentation (#2159) Updates round filter documentation to include the 'method' argument. --- source/_docs/configuration/templating.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_docs/configuration/templating.markdown b/source/_docs/configuration/templating.markdown index bb94a2c912e..7f502cf13fe 100644 --- a/source/_docs/configuration/templating.markdown +++ b/source/_docs/configuration/templating.markdown @@ -80,7 +80,7 @@ Home Assistant adds extensions to allow templates to access all of the current s - `relative_time(timestamp)` will format the date time as relative time vs now (ie 7 seconds) - `float` will format the output as float. - `strptime(string, format)` will parse a string to a datetime based on a [format][strp-format]. -- Filter `round(x)` will convert the input to a number and round it to `x` decimals. +- Filter `round(x, method='common')` will convert the input to a number and round it to `x` decimals. A method can be 'common', 'ceil', or 'floor'. If you don’t specify a method 'common' is used. - 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).