-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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 type stub for async_unsubscribe_topics #130864
Conversation
Hey there @emontnemery, @jbouwh, @bdraco, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
I suggest we correct the signature for |
But things use |
May be: But the consequent name is If you known of certain integrations that would break, then we could contact the maintainers. I think changing to |
Cool, I am happy to search github and fix any broken third party integrations :) |
I think #130866 should take away the confusion, do you agree? |
It sure can! I've left a question on the PR |
Cool, I'm happy for that. I'll close this PR and send out some PRs to integrations which I know use |
Breaking change
Proposed change
Type of change
Additional information
This fixes an issue introduced in #118092 (9be829ba) where
async_unsubscribe_topics
became a partial forasync_prepare_subscribe_topics
, butasync_prepare_subscribe_topics
expectsnew_state
notsub_state
- a typing stub was added but was not updated to reflect the new name for the keyword argument. This meant that anything that usedasync_unsubscribe_topics
with keyword arguments has been broken since 2024.6.0b0 - this doesn't fix that, but instead adjusts the stub so people can at least know it's different.Checklist
ruff format 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
.To help with the load of incoming pull requests: