Correct MQTT device trigger reconfiguration with same topic#36234
Correct MQTT device trigger reconfiguration with same topic#36234balloob merged 1 commit intohome-assistant:devfrom
Conversation
|
Hey there @home-assistant/core, mind taking a look at this pull request as its been labeled with a integration ( |
|
The unsubscribe is scheduled as a task: core/homeassistant/components/mqtt/__init__.py Lines 880 to 881 in e54bae4 But the subscribe is not: core/homeassistant/components/mqtt/__init__.py Lines 865 to 866 in e54bae4 This asymmetry is not very intuitive. Making the If @MartinHjelmare, @balloob what do you think? |
|
I think that returning the task is good improvement to make it work better. Somehow back in the days I wanted all functions that integrations exposed never wait for the work to be done, instead of allowing the caller to decide to wait or not. |
Proposed change
Correct MQTT device trigger reconfiguration with same topic:
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.The integration reached or maintains the following Integration Quality Scale: