Skip to content

Commit

Permalink
Bump habluetooth to 3.17.1 (#137045)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored and balloob committed Feb 1, 2025
1 parent 2b510ca commit df35d22
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 9 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/bluetooth/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
"bluetooth-auto-recovery==1.4.2",
"bluetooth-data-tools==1.22.0",
"dbus-fast==2.30.2",
"habluetooth==3.17.0"
"habluetooth==3.17.1"
]
}
2 changes: 1 addition & 1 deletion homeassistant/package_constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ dbus-fast==2.30.2
fnv-hash-fast==1.2.2
go2rtc-client==0.1.2
ha-ffmpeg==3.2.2
habluetooth==3.17.0
habluetooth==3.17.1
hass-nabucasa==0.88.1
hassil==2.2.0
home-assistant-bluetooth==1.13.0
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion requirements_test_all.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 30 additions & 3 deletions tests/components/bluetooth/test_diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,20 @@ async def test_diagnostics(
}
},
"manager": {
"allocations": {},
"allocations": {
"00:00:00:00:00:01": {
"allocated": [],
"free": 5,
"slots": 5,
"source": "00:00:00:00:00:01",
},
"00:00:00:00:00:02": {
"allocated": [],
"free": 2,
"slots": 2,
"source": "00:00:00:00:00:02",
},
},
"adapters": {
"hci0": {
"address": "00:00:00:00:00:01",
Expand Down Expand Up @@ -292,7 +305,14 @@ async def test_diagnostics_macos(
}
},
"manager": {
"allocations": {},
"allocations": {
"Core Bluetooth": {
"allocated": [],
"free": 5,
"slots": 5,
"source": "Core Bluetooth",
},
},
"adapters": {
"Core Bluetooth": {
"address": "00:00:00:00:00:00",
Expand Down Expand Up @@ -486,7 +506,14 @@ def inject_advertisement(
},
"dbus": {},
"manager": {
"allocations": {},
"allocations": {
"00:00:00:00:00:01": {
"allocated": [],
"free": 5,
"slots": 5,
"source": "00:00:00:00:00:01",
},
},
"adapters": {
"hci0": {
"address": "00:00:00:00:00:01",
Expand Down
22 changes: 20 additions & 2 deletions tests/components/bluetooth/test_websocket_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,30 @@ async def test_subscribe_connection_allocations(
response = await client.receive_json()

assert response["event"] == [
{
"allocated": [],
"free": 5,
"slots": 5,
"source": "00:00:00:00:00:01",
},
{
"allocated": [],
"free": 5,
"slots": 5,
"source": HCI0_SOURCE_ADDRESS,
},
{
"allocated": [],
"free": 5,
"slots": 5,
"source": HCI1_SOURCE_ADDRESS,
},
{
"allocated": [],
"free": 0,
"slots": 0,
"source": NON_CONNECTABLE_REMOTE_SOURCE_ADDRESS,
}
},
]

manager = _get_manager()
Expand All @@ -184,7 +202,7 @@ async def test_subscribe_connection_allocations(
"free": 4,
"slots": 5,
"source": "AA:BB:CC:DD:EE:11",
}
},
]
manager.async_on_allocation_changed(
Allocations(
Expand Down

0 comments on commit df35d22

Please sign in to comment.