Skip to content

Commit

Permalink
fix: remove unused CentralBluetoothManager in models (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Feb 1, 2025
1 parent 02279a9 commit 7466034
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/habluetooth/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

if TYPE_CHECKING:
from .base_scanner import BaseHaScanner
from .manager import BluetoothManager

_BluetoothServiceInfoSelfT = TypeVar(
"_BluetoothServiceInfoSelfT", bound="BluetoothServiceInfo"
Expand All @@ -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."""
Expand Down

0 comments on commit 7466034

Please sign in to comment.