From e2abd3b8d0e956ffd7d65c8fe19f8c10e417a794 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 11 Dec 2023 21:31:23 -1000 Subject: [PATCH] Bump bluetooth libraries (#105522) --- homeassistant/components/bluetooth/manifest.json | 2 +- homeassistant/package_constraints.txt | 4 ++-- pyproject.toml | 2 +- requirements.txt | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- tests/components/bluetooth/test_manager.py | 1 + tests/components/private_ble_device/test_sensor.py | 2 +- 8 files changed, 9 insertions(+), 8 deletions(-) diff --git a/homeassistant/components/bluetooth/manifest.json b/homeassistant/components/bluetooth/manifest.json index 5d54ae6ea824..5f8cdbea9398 100644 --- a/homeassistant/components/bluetooth/manifest.json +++ b/homeassistant/components/bluetooth/manifest.json @@ -20,6 +20,6 @@ "bluetooth-auto-recovery==1.2.3", "bluetooth-data-tools==1.17.0", "dbus-fast==2.20.0", - "habluetooth==0.10.0" + "habluetooth==0.11.1" ] } diff --git a/homeassistant/package_constraints.txt b/homeassistant/package_constraints.txt index 1fce2f8092ba..5d959667a8d9 100644 --- a/homeassistant/package_constraints.txt +++ b/homeassistant/package_constraints.txt @@ -23,10 +23,10 @@ dbus-fast==2.20.0 fnv-hash-fast==0.5.0 ha-av==10.1.1 ha-ffmpeg==3.1.0 -habluetooth==0.10.0 +habluetooth==0.11.1 hass-nabucasa==0.74.0 hassil==1.5.1 -home-assistant-bluetooth==1.10.4 +home-assistant-bluetooth==1.11.0 home-assistant-frontend==20231208.2 home-assistant-intents==2023.12.05 httpx==0.25.0 diff --git a/pyproject.toml b/pyproject.toml index 7b1b025ee242..b30e611d4a13 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ dependencies = [ # When bumping httpx, please check the version pins of # httpcore, anyio, and h11 in gen_requirements_all "httpx==0.25.0", - "home-assistant-bluetooth==1.10.4", + "home-assistant-bluetooth==1.11.0", "ifaddr==0.2.0", "Jinja2==3.1.2", "lru-dict==1.2.0", diff --git a/requirements.txt b/requirements.txt index 250a0948714e..4faf7f8b2c22 100644 --- a/requirements.txt +++ b/requirements.txt @@ -15,7 +15,7 @@ bcrypt==4.0.1 certifi>=2021.5.30 ciso8601==2.3.0 httpx==0.25.0 -home-assistant-bluetooth==1.10.4 +home-assistant-bluetooth==1.11.0 ifaddr==0.2.0 Jinja2==3.1.2 lru-dict==1.2.0 diff --git a/requirements_all.txt b/requirements_all.txt index 90b3435979bd..b74ee315c322 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -984,7 +984,7 @@ ha-philipsjs==3.1.1 habitipy==0.2.0 # homeassistant.components.bluetooth -habluetooth==0.10.0 +habluetooth==0.11.1 # homeassistant.components.cloud hass-nabucasa==0.74.0 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index c4568fdd26e9..d95eb3320598 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -783,7 +783,7 @@ ha-philipsjs==3.1.1 habitipy==0.2.0 # homeassistant.components.bluetooth -habluetooth==0.10.0 +habluetooth==0.11.1 # homeassistant.components.cloud hass-nabucasa==0.74.0 diff --git a/tests/components/bluetooth/test_manager.py b/tests/components/bluetooth/test_manager.py index 33683977ef02..ba28d8fa19cf 100644 --- a/tests/components/bluetooth/test_manager.py +++ b/tests/components/bluetooth/test_manager.py @@ -897,6 +897,7 @@ async def test_goes_unavailable_dismisses_discovery_and_makes_discoverable( """Clear all devices.""" self._discovered_device_advertisement_datas.clear() self._discovered_device_timestamps.clear() + self._previous_service_info.clear() new_info_callback = async_get_advertisement_callback(hass) connector = ( diff --git a/tests/components/private_ble_device/test_sensor.py b/tests/components/private_ble_device/test_sensor.py index a51757899094..15e205c8c86d 100644 --- a/tests/components/private_ble_device/test_sensor.py +++ b/tests/components/private_ble_device/test_sensor.py @@ -94,7 +94,7 @@ async def test_estimated_broadcast_interval( "sensor.private_ble_device_000000_estimated_broadcast_interval" ) assert state - assert state.state == "10" + assert state.state == "10.0" # MAC address changes, the broadcast interval is kept