core/homeassistant/components/template
Erik Montnemery dd5a48996a
Keep capabilities up to date in the entity registry (#101748)
* Keep capabilities up to date in the entity registry

* Warn if entities update their capabilities very often

* Fix updating of device class

* Stop tracking capability updates once flooding is logged

* Only sync registry if state changed

* Improve test

* Revert "Only sync registry if state changed"

This reverts commit 1c52571596c06444df234d4b088242b494b630f2.

* Avoid calculating device class twice

* Address review comments

* Revert using dataclass

* Fix unintended revert

* Add helper method
2023-12-13 17:27:26 +01:00
..
__init__.py
alarm_control_panel.py
binary_sensor.py
button.py
config.py
config_flow.py
const.py
coordinator.py
cover.py
fan.py
image.py
light.py
lock.py
manifest.json
number.py
select.py
sensor.py
services.yaml
strings.json
switch.py
template_entity.py
trigger.py
trigger_entity.py
vacuum.py
weather.py