core/tests/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
..
__init__.py
conftest.py
test_alarm_control_panel.py Refactor common MQTT tests to use modern schema (#77583) 2022-09-09 11:15:48 +02:00
test_binary_sensor.py Refactor common MQTT tests to use modern schema (#77583) 2022-09-09 11:15:48 +02:00
test_button.py Refactor common MQTT tests to use modern schema (#77583) 2022-09-09 11:15:48 +02:00
test_camera.py Refactor common MQTT tests to use modern schema (#77583) 2022-09-09 11:15:48 +02:00
test_climate.py Refactor common MQTT tests to use modern schema (#77583) 2022-09-09 11:15:48 +02:00
test_common.py Refactor common MQTT tests to use modern schema (#77583) 2022-09-09 11:15:48 +02:00
test_config_flow.py Mqtt support config_entry unload (#70149) 2022-07-12 11:07:18 +02:00
test_cover.py Refactor common MQTT tests to use modern schema (#77583) 2022-09-09 11:15:48 +02:00
test_device_tracker.py Refactor MQTT tests to use modern platform schema part 1 (#77387) 2022-09-06 11:02:15 +02:00
test_device_tracker_discovery.py Refactor common MQTT tests to use modern schema (#77583) 2022-09-09 11:15:48 +02:00
test_device_trigger.py Use hass.config_entries.async_setup in mqtt test (#77750) 2022-09-03 15:44:50 +02:00
test_diagnostics.py Improve handling of MQTT config entry data (#72691) 2022-07-22 13:36:43 +02:00
test_discovery.py Clear MQTT discovery topic when a disabled entity is removed (#77757) 2022-09-09 15:24:26 +02:00
test_fan.py Refactor common MQTT tests to use modern schema (#77583) 2022-09-09 11:15:48 +02:00
test_humidifier.py Refactor common MQTT tests to use modern schema (#77583) 2022-09-09 11:15:48 +02:00
test_init.py Refactor common MQTT tests to use modern schema (#77583) 2022-09-09 11:15:48 +02:00
test_legacy_vacuum.py Refactor common MQTT tests to use modern schema (#77583) 2022-09-09 11:15:48 +02:00
test_light.py Refactor common MQTT tests to use modern schema (#77583) 2022-09-09 11:15:48 +02:00
test_light_json.py Refactor common MQTT tests to use modern schema (#77583) 2022-09-09 11:15:48 +02:00
test_light_template.py Refactor common MQTT tests to use modern schema (#77583) 2022-09-09 11:15:48 +02:00
test_lock.py Refactor common MQTT tests to use modern schema (#77583) 2022-09-09 11:15:48 +02:00
test_number.py Refactor common MQTT tests to use modern schema (#77583) 2022-09-09 11:15:48 +02:00
test_scene.py Refactor common MQTT tests to use modern schema (#77583) 2022-09-09 11:15:48 +02:00
test_select.py Refactor common MQTT tests to use modern schema (#77583) 2022-09-09 11:15:48 +02:00
test_sensor.py Refactor common MQTT tests to use modern schema (#77583) 2022-09-09 11:15:48 +02:00
test_siren.py Refactor common MQTT tests to use modern schema (#77583) 2022-09-09 11:15:48 +02:00
test_state_vacuum.py Refactor common MQTT tests to use modern schema (#77583) 2022-09-09 11:15:48 +02:00
test_subscription.py Speed up mqtt tests (#73423) 2022-06-13 10:17:10 -10:00
test_switch.py Refactor common MQTT tests to use modern schema (#77583) 2022-09-09 11:15:48 +02:00
test_tag.py Add `hw_version` to MQTT device info (#77210) 2022-08-25 11:55:33 +02:00
test_trigger.py Speed up mqtt tests (#73423) 2022-06-13 10:17:10 -10:00