Bump habluetooth to 6.26.5 (#175595)

This commit is contained in:
J. Nick Koston
2026-07-04 11:58:03 -05:00
committed by GitHub
parent abd99f7ef1
commit d0b99bc435
4 changed files with 26 additions and 6 deletions
@@ -21,6 +21,6 @@
"bluetooth-auto-recovery==1.6.4",
"bluetooth-data-tools==1.29.18",
"dbus-fast==5.0.22",
"habluetooth==6.26.2"
"habluetooth==6.26.5"
]
}
+1 -1
View File
@@ -35,7 +35,7 @@ file-read-backwards==2.0.0
fnv-hash-fast==2.0.3
go2rtc-client==0.4.0
ha-ffmpeg==3.2.2
habluetooth==6.26.2
habluetooth==6.26.5
hass-nabucasa==2.2.0
hassil==3.8.0
home-assistant-bluetooth==2.0.0
+1 -1
View File
@@ -1213,7 +1213,7 @@ ha-xthings-cloud==1.0.5
habiticalib==0.4.7
# homeassistant.components.bluetooth
habluetooth==6.26.2
habluetooth==6.26.5
# homeassistant.components.hanna
hanna-cloud==0.0.7
+23 -3
View File
@@ -12,6 +12,9 @@ from habluetooth import BluetoothScanningMode, HaScanner
# pylint: disable-next=no-name-in-module
from habluetooth.advertisement_tracker import TRACKER_BUFFERING_WOBBLE_SECONDS
# pylint: disable-next=no-name-in-module
from habluetooth.const import STALE_ROAM_FACTOR
import pytest
from homeassistant import config_entries
@@ -402,9 +405,26 @@ async def test_switching_adapters_based_on_stale_with_discovered_interval(
start_time_monotonic + 10 + TRACKER_BUFFERING_WOBBLE_SECONDS + 1,
HCI1_SOURCE_ADDRESS,
)
# Should switch to hci1 since the previous advertisement is stale
# even though the signal is poor because the device is now
# likely unreachable via hci0
# Should not roam yet: a single missed reception interval must not hand a
# stationary device to a comparable scanner before the roam gate
# (STALE_ROAM_FACTOR stale windows)
assert (
bluetooth.async_ble_device_from_address(hass, address)
is switchbot_device_poor_signal_hci0
)
inject_advertisement_with_time_and_source(
hass,
switchbot_device_poor_signal_hci1,
switchbot_adv_poor_signal_hci1,
start_time_monotonic
+ (10 + TRACKER_BUFFERING_WOBBLE_SECONDS) * STALE_ROAM_FACTOR
+ 1,
HCI1_SOURCE_ADDRESS,
)
# Past the roam gate (STALE_ROAM_FACTOR stale windows): switch to hci1
# since the previous advertisement is stale even though the signal is poor
# because the device is now likely unreachable via hci0
assert (
bluetooth.async_ble_device_from_address(hass, address)
is switchbot_device_poor_signal_hci1