From 69a1da0a1a14e722c1d05ce9f5ca52a1fc217b54 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 28 Feb 2024 01:44:23 -1000 Subject: [PATCH] Make entity component platform setup tasks eager (#111698) Many of these that setup from YAML will never suspend because they do no I/O --- homeassistant/helpers/entity_component.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/helpers/entity_component.py b/homeassistant/helpers/entity_component.py index d748cf5ed86..389dd69900a 100644 --- a/homeassistant/helpers/entity_component.py +++ b/homeassistant/helpers/entity_component.py @@ -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