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

Fix for #4 async_forward_entry_setup is deprecated #5

Merged
merged 2 commits into from
Dec 20, 2024

Conversation

unregist
Copy link
Contributor

@unregist unregist commented Dec 6, 2024

Fix for #4

Calling hass.config_entries.async_forward_entry_setup is deprecated and will be removed in Home Assistant 2025.6. Instead, await hass.config_entries.async_forward_entry_setups as it can load multiple platforms at once and is more efficient since it does not require a separate import executor job for each platform.

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

change async_add_job to async_create_task

async_run_job and async_add_job are deprecated and will be removed in Home Assistant 2025.4.
https://developers.home-assistant.io/blog/2024/03/13/deprecate_add_run_job/
Calling hass.config_entries.async_forward_entry_setup is deprecated and will be removed in Home Assistant 2025.6. Instead, await hass.config_entries.async_forward_entry_setups as it can load multiple platforms at once and is more efficient since it does not require a separate import executor job for each platform.

https://developers.home-assistant.io/blog/2024/06/12/async_forward_entry_setups/
@sammyke007
Copy link

Is this safe to use/update?

@adechant adechant merged commit 664bde4 into adechant:main Dec 20, 2024
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.

3 participants