From d2f2df1459186fe34eb80ae2491a3b83d8d31025 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 28 Aug 2026 19:16:29 -0500 Subject: [PATCH] Bump zeroconf to 0.151.1 (#180579) --- .../components/zeroconf/manifest.json | 2 +- homeassistant/package_constraints.txt | 2 +- pyproject.toml | 2 +- requirements.txt | 2 +- requirements_all.txt | 2 +- .../components/zeroconf/test_websocket_api.py | 18 +++++++++++++----- 6 files changed, 18 insertions(+), 10 deletions(-) diff --git a/homeassistant/components/zeroconf/manifest.json b/homeassistant/components/zeroconf/manifest.json index 5d5a7904944b..2e34b0f19103 100644 --- a/homeassistant/components/zeroconf/manifest.json +++ b/homeassistant/components/zeroconf/manifest.json @@ -8,5 +8,5 @@ "iot_class": "local_push", "loggers": ["zeroconf"], "quality_scale": "internal", - "requirements": ["zeroconf==0.150.0"] + "requirements": ["zeroconf==0.151.1"] } diff --git a/homeassistant/package_constraints.txt b/homeassistant/package_constraints.txt index 7483b587d640..811097703c66 100644 --- a/homeassistant/package_constraints.txt +++ b/homeassistant/package_constraints.txt @@ -75,7 +75,7 @@ urllib3>=2.0 uv==0.12.5 webrtc-models==0.3.0 yarl==1.24.5 -zeroconf==0.150.0 +zeroconf==0.151.1 # Constrain pycryptodome to avoid vulnerability # see https://github.com/home-assistant/core/pull/16238 diff --git a/pyproject.toml b/pyproject.toml index 49ff3bb15a7e..66101e67ebe3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -78,7 +78,7 @@ dependencies = [ "probatio==0.11.3", "yarl==1.24.5", "webrtc-models==0.3.0", - "zeroconf==0.150.0", + "zeroconf==0.151.1", ] [project.urls] diff --git a/requirements.txt b/requirements.txt index dee4da7377ea..4a3814aaf7d8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -60,4 +60,4 @@ urllib3>=2.0 uv==0.12.5 webrtc-models==0.3.0 yarl==1.24.5 -zeroconf==0.150.0 +zeroconf==0.151.1 diff --git a/requirements_all.txt b/requirements_all.txt index db9bc73ddaca..b5499308255c 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -3516,7 +3516,7 @@ zamg==0.4.1 zcc-helper==3.8 # homeassistant.components.zeroconf -zeroconf==0.150.0 +zeroconf==0.151.1 # homeassistant.components.zeversolar zeversolar==0.3.2 diff --git a/tests/components/zeroconf/test_websocket_api.py b/tests/components/zeroconf/test_websocket_api.py index 9677b3e34fdb..04fc3f4eedec 100644 --- a/tests/components/zeroconf/test_websocket_api.py +++ b/tests/components/zeroconf/test_websocket_api.py @@ -21,6 +21,14 @@ from homeassistant.setup import async_setup_component from tests.typing import WebSocketGenerator +PROPERTIES = { + "md": "HASS Bridge W9DN", + "pv": "1.0", + "id": "11:8E:DB:5B:5C:C5", + "c#": "12", + "s#": "1", +} + async def test_subscribe_discovery( hass: HomeAssistant, @@ -62,7 +70,7 @@ async def test_subscribe_discovery( socket.inet_aton("127.0.0.1"), ), DNSText( - "foo2.local.", + "foo2._fakeservice._tcp.local.", const._TYPE_TXT, const._CLASS_IN, const._DNS_HOST_TTL, @@ -87,7 +95,7 @@ async def test_subscribe_discovery( "foo3.local.", ), DNSText( - "foo3.local.", + "foo3._fakeservice._tcp.local.", const._TYPE_TXT, const._CLASS_IN, const._DNS_HOST_TTL, @@ -122,7 +130,7 @@ async def test_subscribe_discovery( "ip_addresses": ["127.0.0.1"], "name": "foo2._fakeservice._tcp.local.", "port": 1234, - "properties": {}, + "properties": PROPERTIES, "type": "_fakeservice._tcp.local.", } ] @@ -152,7 +160,7 @@ async def test_subscribe_discovery( "ip_addresses": ["127.0.0.1"], "name": "foo3._fakeservice._tcp.local.", "port": 1234, - "properties": {}, + "properties": PROPERTIES, "type": "_fakeservice._tcp.local.", } ] @@ -166,7 +174,7 @@ async def test_subscribe_discovery( "ip_addresses": ["127.0.0.1"], "name": "foo3._fakeservice._tcp.local.", "port": 1234, - "properties": {}, + "properties": PROPERTIES, "type": "_fakeservice._tcp.local.", } ]