mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 10:47:10 +00:00
Make entity component platform setup tasks eager (#111698)
Many of these that setup from YAML will never suspend because they do no I/O
This commit is contained in:
parent
459f430575
commit
69a1da0a1a
@ -147,6 +147,7 @@ class EntityComponent(Generic[_EntityT]):
|
|||||||
self.hass.async_create_task(
|
self.hass.async_create_task(
|
||||||
self.async_setup_platform(p_type, p_config),
|
self.async_setup_platform(p_type, p_config),
|
||||||
f"EntityComponent setup platform {p_type} {self.domain}",
|
f"EntityComponent setup platform {p_type} {self.domain}",
|
||||||
|
eager_start=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
# Generic discovery listener for loading platform dynamically
|
# Generic discovery listener for loading platform dynamically
|
||||||
|
Loading…
x
Reference in New Issue
Block a user