core/tests/components/mqtt
Jan Bouwhuis a05c20a498
Filter replaying unrelated retained MQTT messages when subscribing to share topics (#88826)
* Do not replay already processed retained subscr.

* Add tests

* Always replay wildcards

* Update tests for debouncer

* Rework for retained topics

* Fix test

* Correct comment

* Add cleanup and test

* Fix key error

* Correct helper

* Rename mock

* Add comment on function _retained_init

* Always replay initial retained payload

* Apply suggestion moving msg.retain to outer check

* Improve test on edge case

* Improve comment formatting

* Follow up comment - improve comments on test

* Update homeassistant/components/mqtt/client.py

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

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-05-12 15:23:05 +02:00
..
__init__.py
conftest.py Fix typo in docstr (#89804) 2023-03-16 16:54:26 +01:00
test_alarm_control_panel.py Rename MQTT entry mock and cleanup (#91223) 2023-04-12 09:43:03 +02:00
test_binary_sensor.py Allow None device_class and UOM for mqtt entities (#91240) 2023-04-12 19:14:16 +02:00
test_button.py Allow None device_class and UOM for mqtt entities (#91240) 2023-04-12 19:14:16 +02:00
test_camera.py Rename MQTT entry mock and cleanup (#91223) 2023-04-12 09:43:03 +02:00
test_climate.py Rename MQTT entry mock and cleanup (#91223) 2023-04-12 09:43:03 +02:00
test_common.py Merge pending MQTT subscribes to a single call to the paho client (#92172) 2023-05-08 15:37:25 +02:00
test_config_flow.py Only expose MQTT advanced settings in advanced mode (#91996) 2023-04-25 22:23:17 +02:00
test_cover.py Rename MQTT entry mock and cleanup (#91223) 2023-04-12 09:43:03 +02:00
test_device_tracker.py Rename MQTT entry mock and cleanup (#91223) 2023-04-12 09:43:03 +02:00
test_device_trigger.py Rename MQTT entry mock and cleanup (#91223) 2023-04-12 09:43:03 +02:00
test_diagnostics.py Rename MQTT entry mock and cleanup (#91223) 2023-04-12 09:43:03 +02:00
test_discovery.py Debounce and group mqtt unsubscribes (#92201) 2023-05-09 16:36:19 +02:00
test_fan.py Add MQTT fan direction support (#91700) 2023-04-24 11:48:00 +02:00
test_humidifier.py Allow None device_class and UOM for mqtt entities (#91240) 2023-04-12 19:14:16 +02:00
test_init.py Filter replaying unrelated retained MQTT messages when subscribing to share topics (#88826) 2023-05-12 15:23:05 +02:00
test_legacy_vacuum.py Rename MQTT entry mock and cleanup (#91223) 2023-04-12 09:43:03 +02:00
test_light.py Do not allow mqtt lights to set brightness to zero (#91296) 2023-04-14 09:01:29 +02:00
test_light_json.py Add tests mqtt light with single supported color_mode (#91811) 2023-04-22 13:55:43 +02:00
test_light_template.py Add tests mqtt light with single supported color_mode (#91811) 2023-04-22 13:55:43 +02:00
test_lock.py Rename MQTT entry mock and cleanup (#91223) 2023-04-12 09:43:03 +02:00
test_mixins.py Rename MQTT entry mock and cleanup (#91223) 2023-04-12 09:43:03 +02:00
test_number.py Allow None device_class and UOM for mqtt entities (#91240) 2023-04-12 19:14:16 +02:00
test_scene.py Rename MQTT entry mock and cleanup (#91223) 2023-04-12 09:43:03 +02:00
test_select.py Rename MQTT entry mock and cleanup (#91223) 2023-04-12 09:43:03 +02:00
test_sensor.py Allow None device_class and UOM for mqtt entities (#91240) 2023-04-12 19:14:16 +02:00
test_siren.py Rename MQTT entry mock and cleanup (#91223) 2023-04-12 09:43:03 +02:00
test_state_vacuum.py Rename MQTT entry mock and cleanup (#91223) 2023-04-12 09:43:03 +02:00
test_subscription.py Rename MQTT entry mock and cleanup (#91223) 2023-04-12 09:43:03 +02:00
test_switch.py Allow None device_class and UOM for mqtt entities (#91240) 2023-04-12 19:14:16 +02:00
test_tag.py Rename MQTT entry mock and cleanup (#91223) 2023-04-12 09:43:03 +02:00
test_text.py Rename MQTT entry mock and cleanup (#91223) 2023-04-12 09:43:03 +02:00
test_trigger.py Rename MQTT entry mock and cleanup (#91223) 2023-04-12 09:43:03 +02:00
test_update.py Allow None device_class and UOM for mqtt entities (#91240) 2023-04-12 19:14:16 +02:00
test_util.py Make sure MQTT client is available when starting depending platforms (#91164) 2023-04-20 08:07:35 +02:00