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:
J. Nick Koston 2024-02-28 01:44:23 -10:00 committed by GitHub
parent 459f430575
commit 69a1da0a1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -147,6 +147,7 @@ class EntityComponent(Generic[_EntityT]):
self.hass.async_create_task(
self.async_setup_platform(p_type, p_config),
f"EntityComponent setup platform {p_type} {self.domain}",
eager_start=True,
)
# Generic discovery listener for loading platform dynamically