From d548f3d12f33b8bef015ac10dcd46d70cf74431d Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Wed, 4 Feb 2026 14:23:02 +0100 Subject: [PATCH] Bump python-otbr-api to 2.8.0 (#162167) --- homeassistant/components/otbr/manifest.json | 2 +- homeassistant/components/thread/dataset_store.py | 2 +- homeassistant/components/thread/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- tests/components/thread/test_dataset_store.py | 2 +- tests/components/thread/test_websocket_api.py | 5 ++++- 7 files changed, 10 insertions(+), 7 deletions(-) diff --git a/homeassistant/components/otbr/manifest.json b/homeassistant/components/otbr/manifest.json index 577496152703..b4651898ecac 100644 --- a/homeassistant/components/otbr/manifest.json +++ b/homeassistant/components/otbr/manifest.json @@ -8,5 +8,5 @@ "documentation": "https://www.home-assistant.io/integrations/otbr", "integration_type": "service", "iot_class": "local_polling", - "requirements": ["python-otbr-api==2.7.1"] + "requirements": ["python-otbr-api==2.8.0"] } diff --git a/homeassistant/components/thread/dataset_store.py b/homeassistant/components/thread/dataset_store.py index f1b99f60c72d..e64a0a4afe7f 100644 --- a/homeassistant/components/thread/dataset_store.py +++ b/homeassistant/components/thread/dataset_store.py @@ -54,7 +54,7 @@ class DatasetEntry: return cast(tlv_parser.Channel, channel).channel @cached_property - def dataset(self) -> dict[MeshcopTLVType, tlv_parser.MeshcopTLVItem]: + def dataset(self) -> dict[MeshcopTLVType | int, tlv_parser.MeshcopTLVItem]: """Return the dataset in dict format.""" return tlv_parser.parse_tlv(self.tlv) diff --git a/homeassistant/components/thread/manifest.json b/homeassistant/components/thread/manifest.json index f6316bb6b46c..6424a174402e 100644 --- a/homeassistant/components/thread/manifest.json +++ b/homeassistant/components/thread/manifest.json @@ -7,7 +7,7 @@ "documentation": "https://www.home-assistant.io/integrations/thread", "integration_type": "service", "iot_class": "local_polling", - "requirements": ["python-otbr-api==2.7.1", "pyroute2==0.7.5"], + "requirements": ["python-otbr-api==2.8.0", "pyroute2==0.7.5"], "single_config_entry": true, "zeroconf": ["_meshcop._udp.local."] } diff --git a/requirements_all.txt b/requirements_all.txt index 193a5691af01..c83f47dbeff4 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -2579,7 +2579,7 @@ python-opensky==1.0.1 # homeassistant.components.otbr # homeassistant.components.thread -python-otbr-api==2.7.1 +python-otbr-api==2.8.0 # homeassistant.components.overseerr python-overseerr==0.8.0 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 6d99e2a75a09..de69d6d1e94c 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -2172,7 +2172,7 @@ python-opensky==1.0.1 # homeassistant.components.otbr # homeassistant.components.thread -python-otbr-api==2.7.1 +python-otbr-api==2.8.0 # homeassistant.components.overseerr python-overseerr==0.8.0 diff --git a/tests/components/thread/test_dataset_store.py b/tests/components/thread/test_dataset_store.py index 4bec9aea011d..523347cef1ec 100644 --- a/tests/components/thread/test_dataset_store.py +++ b/tests/components/thread/test_dataset_store.py @@ -64,7 +64,7 @@ DATASET_1_LARGER_TIMESTAMP = ( async def test_add_invalid_dataset(hass: HomeAssistant) -> None: """Test adding an invalid dataset.""" - with pytest.raises(TLVError, match="unknown type 222"): + with pytest.raises(TLVError, match="expected 173 bytes for tag 222, got 2"): await dataset_store.async_add_dataset(hass, "source", "DEADBEEF") store = await dataset_store.async_get_store(hass) diff --git a/tests/components/thread/test_websocket_api.py b/tests/components/thread/test_websocket_api.py index fb429acc3e0c..1876cfa956d8 100644 --- a/tests/components/thread/test_websocket_api.py +++ b/tests/components/thread/test_websocket_api.py @@ -57,7 +57,10 @@ async def test_add_invalid_dataset( ) msg = await client.receive_json() assert not msg["success"] - assert msg["error"] == {"code": "invalid_format", "message": "unknown type 222"} + assert msg["error"] == { + "code": "invalid_format", + "message": "expected 173 bytes for tag 222, got 2", + } async def test_delete_dataset(