Move template breaking change up (#19629)

This commit is contained in:
Paulus Schoutsen 2021-10-06 11:11:29 -07:00 committed by GitHub
parent fabe1be174
commit 96be18bac6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 integration. Click on one of those to read more about the breaking change
for that specific item. 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)" %} {% details "Material Design Icons (MDI)" %}
The Material Design Icons have been upgraded to v6, which brings in around 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 %} {% 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" %} {% details "TP-Link Kasa Smart" %}
The TP-Link Kasa Smart integration migrated to configuration via the UI. Configuring The TP-Link Kasa Smart integration migrated to configuration via the UI. Configuring