From 85cdbb5adefbafd4c2814353d6ef1dcc565d663a Mon Sep 17 00:00:00 2001 From: Raman Gupta <7243222+raman325@users.noreply.github.com> Date: Fri, 5 Jan 2024 06:38:00 -0500 Subject: [PATCH] Bump zwave-js-server-python to 0.55.3 (#107225) Co-authored-by: Martin Hjelmare --- homeassistant/components/zwave_js/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- tests/components/zwave_js/test_events.py | 11 ++++++++--- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/zwave_js/manifest.json b/homeassistant/components/zwave_js/manifest.json index 9a66dae8e9323b..a06de5cb8eeba2 100644 --- a/homeassistant/components/zwave_js/manifest.json +++ b/homeassistant/components/zwave_js/manifest.json @@ -9,7 +9,7 @@ "iot_class": "local_push", "loggers": ["zwave_js_server"], "quality_scale": "platinum", - "requirements": ["pyserial==3.5", "zwave-js-server-python==0.55.2"], + "requirements": ["pyserial==3.5", "zwave-js-server-python==0.55.3"], "usb": [ { "vid": "0658", diff --git a/requirements_all.txt b/requirements_all.txt index 023ddd084a39f2..a9e23547334845 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -2896,7 +2896,7 @@ zigpy==0.60.4 zm-py==0.5.2 # homeassistant.components.zwave_js -zwave-js-server-python==0.55.2 +zwave-js-server-python==0.55.3 # homeassistant.components.zwave_me zwave-me-ws==0.4.3 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 888906f875fd2d..9060526df4b09c 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -2192,7 +2192,7 @@ zigpy-znp==0.12.1 zigpy==0.60.4 # homeassistant.components.zwave_js -zwave-js-server-python==0.55.2 +zwave-js-server-python==0.55.3 # homeassistant.components.zwave_me zwave-me-ws==0.4.3 diff --git a/tests/components/zwave_js/test_events.py b/tests/components/zwave_js/test_events.py index 4fbaa97f118e02..1e91b9338fad65 100644 --- a/tests/components/zwave_js/test_events.py +++ b/tests/components/zwave_js/test_events.py @@ -348,7 +348,11 @@ async def test_power_level_notification( async def test_unknown_notification( - hass: HomeAssistant, hank_binary_switch, integration, client + hass: HomeAssistant, + caplog: pytest.LogCaptureFixture, + hank_binary_switch, + integration, + client, ) -> None: """Test behavior of unknown notification type events.""" # just pick a random node to fake the notification event @@ -358,8 +362,9 @@ async def test_unknown_notification( # by the lib. We will use a class that is guaranteed not to be recognized notification_obj = AsyncMock() notification_obj.node = node - with pytest.raises(TypeError): - node.emit("notification", {"notification": notification_obj}) + node.emit("notification", {"notification": notification_obj}) + + assert f"Unhandled notification type: {notification_obj}" in caplog.text notification_events = async_capture_events(hass, "zwave_js_notification")