hass-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 Address some MQTT review comments (#75482) 2022-07-22 11:12:00 +02:00
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 Support configuring the mode of MQTT number entities (#77478) 2022-08-30 12:47:35 +02:00
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 Fix MQTT camera encoding (#76124) 2022-08-15 08:26:17 +02:00
client.py Fix reload of MQTT config entries (#76089) 2022-09-02 18:54:20 +02:00
climate.py Add cv.deprecated to MQTT modern schema's too (#76884) 2022-08-19 11:12:47 +02:00
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 Add cv.deprecated to MQTT modern schema's too (#76884) 2022-08-19 11:12:47 +02:00
debug_info.py
device_automation.py
device_trigger.py Use TriggerActionType [core, l-m] (#76806) 2022-08-15 17:39:55 +02:00
diagnostics.py
discovery.py Improve MQTT warning message on illegal discovery topic (#76545) 2022-08-10 09:38:40 -04:00
fan.py Add cv.deprecated to MQTT modern schema's too (#76884) 2022-08-19 11:12:47 +02:00
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 Add this object to MQTT templates (#77142) 2022-08-23 08:43:07 +02:00
number.py Support configuring the mode of MQTT number entities (#77478) 2022-08-30 12:47:35 +02:00
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 Add repair for deprecated MQTT yaml config (#77174) 2022-08-25 13:30:05 +02:00
subscription.py
switch.py
tag.py Remove callback decorator from coroutine functions (#75626) 2022-07-22 19:09:02 +02:00
trigger.py Use TriggerActionType [core, l-m] (#76806) 2022-08-15 17:39:55 +02:00
util.py