From 74660343b30fec50b927fdddd92e72eacb4da6cf Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 31 Jan 2025 23:00:31 -0600 Subject: [PATCH] fix: remove unused CentralBluetoothManager in models (#138) --- src/habluetooth/models.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/habluetooth/models.py b/src/habluetooth/models.py index 736ff66..ed5e84b 100644 --- a/src/habluetooth/models.py +++ b/src/habluetooth/models.py @@ -14,7 +14,6 @@ if TYPE_CHECKING: from .base_scanner import BaseHaScanner - from .manager import BluetoothManager _BluetoothServiceInfoSelfT = TypeVar( "_BluetoothServiceInfoSelfT", bound="BluetoothServiceInfo" @@ -30,24 +29,6 @@ _int = int # avoid cython conversion since we always want a pyint -class CentralBluetoothManager: - """Central Bluetooth Manager.""" - - manager: BluetoothManager | None = None - - -def get_manager() -> BluetoothManager: - """Get the BluetoothManager.""" - if TYPE_CHECKING: - assert CentralBluetoothManager.manager is not None - return CentralBluetoothManager.manager - - -def set_manager(manager: BluetoothManager) -> None: - """Set the BluetoothManager.""" - CentralBluetoothManager.manager = manager - - @dataclass(slots=True, frozen=True) class HaBluetoothSlotAllocations: """Data for how to allocate slots for BLEDevice connections."""