Add clarity and links to the template breaking changes

This commit is contained in:
Franck Nijhof 2020-09-10 21:45:30 +02:00
parent 9b2a96d9fa
commit a97b019d62
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

@ -1071,14 +1071,18 @@ It is no longer necessary to provide a list of entities to monitor for each
template platform as automatic analysis can now find all entities that affect
the state in the template without manual setup.
This means you can now remove the `entity_id` option from your templates,
as it is now deprecated.
The template is now re-evaluated whenever an entity that can affect the
template state changes. New entities that can affect the template state are
automatically discovered each time the template is rendered. This change solves
a performance issue where the template would be re-rendered unnecessarily.
Please review the `Working without entities` section on the
`Binary Sensor Template` documentation for alternative ways to force
templates entities to re-evaluate.
Please review the [`Working without entities`][working-without-entities] section
on the [`Binary Sensor Template`][working-without-entities] documentation for
alternative ways to force templates entities to re-evaluate. This includes
templates that rely on the use of `now()`.
If this change means you need to make adjustments, we have made it easier by
making template entities reloadable in the `YAML configuration reloading`
@ -1086,6 +1090,8 @@ section under `Configure Home Assistant` -> `Server Controls`.
([@bdraco] - [#39382]) ([template docs])
[working-without-entities]: /integrations/binary_sensor.template/#working-without-entities
</p>
</details>