Small speed up to Bluetooth setup (#111677)

This commit is contained in:
J. Nick Koston 2024-02-27 12:43:44 -10:00 committed by GitHub
parent 6abb8ae273
commit 3c25e2a4bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(