From 5df8f28c90161a6abf11717560663ae709c24790 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 5 Dec 2023 11:46:20 -1000 Subject: [PATCH] Relocate Bluetooth manager to habluetooth library --- homeassistant/components/bluetooth/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/homeassistant/components/bluetooth/__init__.py b/homeassistant/components/bluetooth/__init__.py index 329b597d515..1c55ae1f7c8 100644 --- a/homeassistant/components/bluetooth/__init__.py +++ b/homeassistant/components/bluetooth/__init__.py @@ -26,6 +26,7 @@ from habluetooth import ( HaBluetoothConnector, HaScanner, ScannerStartError, + set_manager, ) from home_assistant_bluetooth import BluetoothServiceInfo, BluetoothServiceInfoBleak @@ -146,6 +147,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: manager = HomeAssistantBluetoothManager( hass, integration_matcher, bluetooth_adapters, bluetooth_storage, slot_manager ) + set_manager(manager) await manager.async_setup() hass.bus.async_listen_once( EVENT_HOMEASSISTANT_STOP, lambda event: manager.async_stop()