From 96be18bac69ebb6b7b66f0c27cb687acda4cc537 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Wed, 6 Oct 2021 11:11:29 -0700 Subject: [PATCH] Move template breaking change up (#19629) --- .../_posts/2021-10-06-release-202110.markdown | 67 ++++++++++--------- 1 file changed, 34 insertions(+), 33 deletions(-) diff --git a/source/_posts/2021-10-06-release-202110.markdown b/source/_posts/2021-10-06-release-202110.markdown index 70efafe4040..048aeb1e151 100644 --- a/source/_posts/2021-10-06-release-202110.markdown +++ b/source/_posts/2021-10-06-release-202110.markdown @@ -242,6 +242,40 @@ Below is a listing of the breaking change for this release, per subject or integration. Click on one of those to read more about the breaking change for that specific item. +{% details "Templates" %} + +The following template filters and functions will now log a warning instead of +silently returning the input if the input is invalid and no default value is specified: + +- `acos` +- `as_timestamp` +- `asin` +- `atan` +- `atan2` +- `cos` +- `float` +- `log` +- `multiply` +- `round` +- `sin` +- `sqrt` +- `strptime` +- `tan` +- `timestamp_custom` +- `timestamp_local` +- `timestamp_utc` + +The `float` filter will now log a warning instead of silently returning `0` if +the input is invalid and no default value is specified. + +In Home Assistant Core 2021.12 the template will fail to render if no default +value is specified. You can specify a default value by passing to the filter like +this: {% raw %}`{{ "abc" | float(default=0) }}`{% endraw %}. + +([@emontnemery] - [#56453]) + +{% enddetails %} + {% details "Material Design Icons (MDI)" %} The Material Design Icons have been upgraded to v6, which brings in around @@ -594,39 +628,6 @@ attribute to use the separate sensors available for these states. {% enddetails %} -{% details "Templates" %} - -The following template filters and functions will now log a warning instead of -silently returning the input if the input is invalid and no default value is specified: - -- `acos` -- `as_timestamp` -- `asin` -- `atan` -- `atan2` -- `cos` -- `float` -- `log` -- `multiply` -- `round` -- `sin` -- `sqrt` -- `strptime` -- `tan` -- `timestamp_custom` -- `timestamp_local` -- `timestamp_utc` - -The `float` filter will now log a warning instead of silently returning `0` if -the input is invalid and no default value is specified. - -In Home Assistant Core 2021.12 the template will fail to render if no default -value is specified. - -([@emontnemery] - [#56453]) - -{% enddetails %} - {% details "TP-Link Kasa Smart" %} The TP-Link Kasa Smart integration migrated to configuration via the UI. Configuring