core/homeassistant/components/template
Erik Montnemery 5987266e56
Refactor template entity to allow reuse (#72753)
* Refactor template entity to allow reuse

* Fix schema and default name

* Add tests

* Update requirements

* Improve test

* Tweak TemplateSensor initializer

* Drop attributes and availability from TemplateEntity

* Use rest sensor for proof of concept

* Revert changes in SNMP sensor

* Don't set _attr_should_poll in mixin class

* Update requirements
2022-06-08 15:55:49 +02:00
..
__init__.py
alarm_control_panel.py Refactor template entity to allow reuse (#72753) 2022-06-08 15:55:49 +02:00
binary_sensor.py Refactor template entity to allow reuse (#72753) 2022-06-08 15:55:49 +02:00
button.py Refactor template entity to allow reuse (#72753) 2022-06-08 15:55:49 +02:00
config.py
const.py
cover.py Refactor template entity to allow reuse (#72753) 2022-06-08 15:55:49 +02:00
fan.py Refactor template entity to allow reuse (#72753) 2022-06-08 15:55:49 +02:00
light.py Refactor template entity to allow reuse (#72753) 2022-06-08 15:55:49 +02:00
lock.py Refactor template entity to allow reuse (#72753) 2022-06-08 15:55:49 +02:00
manifest.json
number.py Refactor template entity to allow reuse (#72753) 2022-06-08 15:55:49 +02:00
select.py Refactor template entity to allow reuse (#72753) 2022-06-08 15:55:49 +02:00
sensor.py Refactor template entity to allow reuse (#72753) 2022-06-08 15:55:49 +02:00
services.yaml
switch.py Refactor template entity to allow reuse (#72753) 2022-06-08 15:55:49 +02:00
template_entity.py Refactor template entity to allow reuse (#72753) 2022-06-08 15:55:49 +02:00
trigger.py
trigger_entity.py
vacuum.py Refactor template entity to allow reuse (#72753) 2022-06-08 15:55:49 +02:00
weather.py Refactor template entity to allow reuse (#72753) 2022-06-08 15:55:49 +02:00