developers.home-assistant/blog/2024-06-12-async_forward_entry_setups.md
J. Nick Koston b8417d4b07
Add blog post about using async_forward_entry_setups instead of async_forward_entry_setup (#2203)
* Add blog post about ensuring config entries are not unloaded while their platforms are setting up

* adjust existing docs

* Update blog/2024-06-04-ensure_config_entry_platforms_hold_lock.md

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* newline

* adjust block post for removal of async_late_forward_entry_setup

* adjust block post for removal of async_late_forward_entry_setup

* Update blog/2024-06-04-ensure_config_entry_platforms_hold_lock.md

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* rename

* Update blog date

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2024-06-12 21:13:39 -04:00

755 B

author, authorURL, title
author authorURL title
J. Nick Koston https://github.com/bdraco Forwarding setup to config entry platforms

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.

hass.config_entries.async_forward_entry_setups must always be awaited if it's called while the config entry is being set up to ensure that it finishes before the config entry setup is complete. For more details, review this blog post.