hass-core/homeassistant/components/mqtt
Jan Bouwhuis 3b2aae5045
Refactor MQTT discovery (#67966)
* Proof of concept

* remove notify platform

* remove loose test

* Add rework from #67912 (#1)

* Move notify serviceupdater to Mixins

* Move tag discovery handler to Mixins

* fix tests

* Add typing for async_load_platform_helper

* Add add entry unload support for notify platform

* Simplify discovery updates

* Remove not needed extra logic

* Cleanup inrelevant or duplicate code

* reuse update_device and move to mixins

* Remove notify platform

* revert changes to notify platform

* Rename update class

* unify tag entry setup

* Use shared code for device_trigger `update_device`

* PoC shared dispatcher for device_trigger

* Fix bugs

* Improve typing - remove async_update

* Unload config_entry and tests

* Release dispatcher after setup and deduplicate

* closures to methods, revert `in` to `=`, updates

* Re-add update support for tag platform

* Re-add update support for device-trigger platform

* Cleanup rediscovery code revert related changes

* Undo discovery code shift

* Update homeassistant/components/mqtt/mixins.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Update homeassistant/components/mqtt/device_trigger.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Update homeassistant/components/mqtt/mixins.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* revert doc string changes

* move conditions

* typing and check config_entry_id

* Update homeassistant/components/mqtt/mixins.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* cleanup not used attribute

* Remove entry_unload code and tests

* update  comment

* add second comment

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-04-15 12:35:08 +02:00
..
device_tracker Fix race when handling updated MQTT discovery data (#65415) 2022-02-02 17:12:22 -08:00
light Additional MQTT light command templates (#63361) 2022-02-22 00:00:49 +01:00
translations [ci skip] Translation update 2022-03-13 00:18:58 +00:00
vacuum Drop MQTT import flow (#66160) 2022-02-10 21:09:57 +01:00
__init__.py Mend incorrectly imported MQTT config entries (#68987) 2022-04-01 08:11:31 -07:00
abbreviations.py Revert "Add MQTT notify platform (#64728)" (#68505) 2022-03-22 12:51:24 +01:00
alarm_control_panel.py Use EntityFeature enum in mqtt (#69416) 2022-04-07 09:44:26 +02:00
binary_sensor.py Fix race when handling rapid succession of MQTT discovery messages (#68785) 2022-03-29 20:26:11 -07:00
button.py Drop MQTT import flow (#66160) 2022-02-10 21:09:57 +01:00
camera.py Drop MQTT import flow (#66160) 2022-02-10 21:09:57 +01:00
climate.py Use EntityFeature enum in mqtt (#69416) 2022-04-07 09:44:26 +02:00
config_flow.py Correct local import of paho-mqtt (#67944) 2022-03-10 10:32:49 +01:00
const.py Revert "Add MQTT notify platform (#64728)" (#68505) 2022-03-22 12:51:24 +01:00
cover.py Use EntityFeature enum in mqtt (#69416) 2022-04-07 09:44:26 +02:00
debug_info.py Add MQTT diagnostics (#66730) 2022-02-18 09:28:49 +01:00
device_automation.py Improve MQTT device removal (#66766) 2022-02-18 13:45:25 +01:00
device_trigger.py Refactor MQTT discovery (#67966) 2022-04-15 12:35:08 +02:00
diagnostics.py Add MQTT diagnostics (#66730) 2022-02-18 09:28:49 +01:00
discovery.py Refactor MQTT discovery (#67966) 2022-04-15 12:35:08 +02:00
fan.py Use EntityFeature enum in mqtt (#69416) 2022-04-07 09:44:26 +02:00
humidifier.py Use EntityFeature enum in mqtt (#69416) 2022-04-07 09:44:26 +02:00
lock.py Use EntityFeature enum in mqtt (#69416) 2022-04-07 09:44:26 +02:00
manifest.json
mixins.py Refactor MQTT discovery (#67966) 2022-04-15 12:35:08 +02:00
models.py Refactor MQTT discovery (#67966) 2022-04-15 12:35:08 +02:00
number.py Drop MQTT import flow (#66160) 2022-02-10 21:09:57 +01:00
scene.py Refactor MQTT scene to inherit MqttEntity (#68883) 2022-03-30 15:46:45 +02:00
select.py Drop MQTT import flow (#66160) 2022-02-10 21:09:57 +01:00
sensor.py Fix race when handling rapid succession of MQTT discovery messages (#68785) 2022-03-29 20:26:11 -07:00
services.yaml Prettify yaml (services.yaml) (#68878) 2022-03-30 09:48:06 +02:00
siren.py Use SirenEntityFeature enum in mqtt (#69647) 2022-04-08 10:37:12 +02:00
strings.json
subscription.py Fix race when handling updated MQTT discovery data (#65415) 2022-02-02 17:12:22 -08:00
switch.py Remove energy usage from the switch base class (#68821) 2022-03-28 18:56:04 -10:00
tag.py Refactor MQTT discovery (#67966) 2022-04-15 12:35:08 +02:00
trigger.py Add mqtt sensor configurable state encoding for sensor and binary_sensor platform (#60447) 2021-11-30 14:04:24 +01:00
util.py