hass-core/homeassistant/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
..
light Do not allow mqtt lights to set brightness to zero (#91296) 2023-04-14 09:01:29 +02:00
vacuum
__init__.py Fix MQTT certificate files setup (#92266) 2023-04-30 00:01:44 +02:00
abbreviations.py Add MQTT fan direction support (#91700) 2023-04-24 11:48:00 +02:00
alarm_control_panel.py Adjust docstrings for ruff D404 (#89077) 2023-03-03 11:26:13 +01:00
binary_sensor.py
button.py
camera.py
client.py Filter replaying unrelated retained MQTT messages when subscribing to share topics (#88826) 2023-05-12 15:23:05 +02:00
climate.py
config.py
config_flow.py Only expose MQTT advanced settings in advanced mode (#91996) 2023-04-25 22:23:17 +02:00
config_integration.py Cleanup mqtt CONFIG_SCHEMA_ENTRY (#90791) 2023-04-11 17:41:38 +02:00
const.py Make sure MQTT client is available when starting depending platforms (#91164) 2023-04-20 08:07:35 +02:00
cover.py
debug_info.py
device_automation.py
device_tracker.py
device_trigger.py
diagnostics.py
discovery.py Remove unreachable code in mqtt integration discovery (#91796) 2023-04-22 12:31:32 +02:00
fan.py Add MQTT fan direction support (#91700) 2023-04-24 11:48:00 +02:00
humidifier.py Allow None device_class and UOM for mqtt entities (#91240) 2023-04-12 19:14:16 +02:00
lock.py
manifest.json
mixins.py Cleanup unreachable code where device_entry will never be None on an update event (#91855) 2023-04-24 16:09:36 +02:00
models.py Rework MQTT config merging and adding defaults (#90529) 2023-04-04 18:12:18 +02:00
number.py Allow None device_class and UOM for mqtt entities (#91240) 2023-04-12 19:14:16 +02:00
scene.py
select.py
sensor.py Allow None device_class and UOM for mqtt entities (#91240) 2023-04-12 19:14:16 +02:00
services.yaml
siren.py
strings.json
subscription.py Substate will never be None when subscribing mqtt topics (#91856) 2023-04-22 17:54:39 +02:00
switch.py
tag.py
text.py
trigger.py
update.py
util.py Make sure MQTT client is available when starting depending platforms (#91164) 2023-04-20 08:07:35 +02:00