From 3c25e2a4bdab34eef68a59e75dd6bd751b370beb Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 27 Feb 2024 12:43:44 -1000 Subject: [PATCH] Small speed up to Bluetooth setup (#111677) --- homeassistant/components/bluetooth/__init__.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/bluetooth/__init__.py b/homeassistant/components/bluetooth/__init__.py index e3d1db5a86e..c2f1724b340 100644 --- a/homeassistant/components/bluetooth/__init__.py +++ b/homeassistant/components/bluetooth/__init__.py @@ -208,13 +208,15 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: integration_matcher = IntegrationMatcher(await async_get_bluetooth(hass)) slot_manager_setup_task = hass.async_create_task( - slot_manager.async_setup(), "slot_manager setup" + slot_manager.async_setup(), "slot_manager setup", eager_start=True ) processor_setup_task = hass.async_create_task( - passive_update_processor.async_setup(hass), "passive_update_processor setup" + passive_update_processor.async_setup(hass), + "passive_update_processor setup", + eager_start=True, ) storage_setup_task = hass.async_create_task( - bluetooth_storage.async_setup(), "bluetooth storage setup" + bluetooth_storage.async_setup(), "bluetooth storage setup", eager_start=True ) integration_matcher.async_setup() manager = HomeAssistantBluetoothManager(