mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-06-21 09:36:28 +00:00

* 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>
755 B
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.