Skip to content

Commit

Permalink
fix: align naming with Home Assistant for new connection slots code (#36
Browse files Browse the repository at this point in the history
)
  • Loading branch information
bdraco authored Dec 22, 2022
1 parent 5b3c2f5 commit 0605de5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/bluetooth_adapters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from .adapters import BluetoothAdapters
from .const import (
DEFAULT_ADDRESS,
DEFAULT_CONNECTION_SLOTS,
MACOS_DEFAULT_BLUETOOTH_ADAPTER,
UNIX_DEFAULT_BLUETOOTH_ADAPTER,
WINDOWS_DEFAULT_BLUETOOTH_ADAPTER,
Expand Down Expand Up @@ -57,7 +58,7 @@
"load_history_from_managed_objects",
"AdapterDetails",
"ADAPTER_ADDRESS",
"ADAPTER_CONNECTIONS_SLOTS",
"ADAPTER_CONNECTION_SLOTS",
"ADAPTER_SW_VERSION",
"ADAPTER_HW_VERSION",
"ADAPTER_PASSIVE_SCAN",
Expand Down
4 changes: 2 additions & 2 deletions src/bluetooth_adapters/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class AdapterDetails(TypedDict, total=False):
vendor_id: str | None
product_id: str | None
passive_scan: bool
connections_slots: int | None
connection_slots: int | None


ADAPTER_ADDRESS: Final = "address"
Expand All @@ -27,4 +27,4 @@ class AdapterDetails(TypedDict, total=False):
ADAPTER_PRODUCT: Final = "product"
ADAPTER_VENDOR_ID: Final = "vendor_id"
ADAPTER_PRODUCT_ID: Final = "product_id"
ADAPTER_CONNECTIONS_SLOTS: Final = "connections_slots"
ADAPTER_CONNECTION_SLOTS: Final = "connection_slots"

0 comments on commit 0605de5

Please sign in to comment.