core/homeassistant/components/mqtt
Jan Bouwhuis fb67123d77
Clear MQTT discovery topic when a disabled entity is removed (#77757)
* Cleanup discovery on entity removal

* Add test

* Cleanup and test

* Test with clearing payload not unique id

* Address comments

* Tests cover and typing

* Just pass hass

* reuse code

* Follow up comments revert changes to cover tests

* Add test unique_id has priority over disabled

* Update homeassistant/components/mqtt/__init__.py

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

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-09-09 15:24:26 +02:00
..
device_tracker
light Improve warning messages on invalid received modes (#77909) 2022-09-09 11:12:09 +02:00
translations [ci skip] Translation update 2022-09-09 00:28:55 +00:00
vacuum
__init__.py Clear MQTT discovery topic when a disabled entity is removed (#77757) 2022-09-09 15:24:26 +02:00
abbreviations.py
alarm_control_panel.py
binary_sensor.py Use _attr_force_update in mqtt (#77902) 2022-09-07 23:42:16 +02:00
button.py
camera.py
client.py Fix reload of MQTT config entries (#76089) 2022-09-02 18:54:20 +02:00
climate.py
config.py
config_flow.py
config_integration.py
const.py Clear MQTT discovery topic when a disabled entity is removed (#77757) 2022-09-09 15:24:26 +02:00
cover.py
debug_info.py
device_automation.py
device_trigger.py
diagnostics.py
discovery.py
fan.py
humidifier.py
lock.py
manifest.json
mixins.py Clear MQTT discovery topic when a disabled entity is removed (#77757) 2022-09-09 15:24:26 +02:00
models.py
number.py
scene.py Improve entity type hints [m] (#77816) 2022-09-05 10:59:36 +02:00
select.py
sensor.py Use _attr_force_update in mqtt (#77902) 2022-09-07 23:42:16 +02:00
services.yaml
siren.py Use platform constants from root (#78032) 2022-09-08 12:24:45 +02:00
strings.json
subscription.py
switch.py
tag.py
trigger.py
util.py