Skip to content
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

Update load and unload platform #609

Merged
merged 1 commit into from
Jun 20, 2024
Merged

Conversation

brg468
Copy link
Collaborator

@brg468 brg468 commented Jun 20, 2024

Use hass.config_entries.async_forward_entry_setups for setup. Gets rid of the depreciation warning and complies with the blog post here:

https://developers.home-assistant.io/blog/2024/06/12/async_forward_entry_setups

Also switch to the preferred async_unload_platforms method.

@brg468 brg468 changed the title Update load and unload platforms Update load and unload platform Jun 20, 2024
Copy link
Owner

@SecKatie SecKatie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What an improvement to readability! Thank you. Looks good to me!

@SecKatie SecKatie merged commit 3d46c15 into SecKatie:master Jun 20, 2024
4 checks passed
@brg468 brg468 deleted the entry-setups branch June 20, 2024 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants