-
-
Notifications
You must be signed in to change notification settings - Fork 29k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix race on check MQTT subscriptions #88117
Conversation
Hey there @emontnemery, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
This is missing a key thing that is in #88072 Specifically, when you subscribe to a topic, MQTT will send you the latest status for that topic. My change also adds a last_message for each topic (at least each simple topic) and will send the last message that was received on that topic to new subscribers. |
Though, I guess, we will now have to change my MR to accommodate this MR since it's merged. |
Nevermind, I mis-read. The other only handles unsubscribes, not subscribes. My MR is still relevant. |
Proposed change
Check MQTT subscriptions under paho client lock to avoid a race.
Type of change
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.To help with the load of incoming pull requests: