Skip to content

Commit

Permalink
Bump zwave-js-server-python to 0.55.3 (#107225)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
  • Loading branch information
raman325 and MartinHjelmare authored Jan 5, 2024
1 parent 6033a7c commit 85cdbb5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/zwave_js/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
11 changes: 8 additions & 3 deletions tests/components/zwave_js/test_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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")

Expand Down

0 comments on commit 85cdbb5

Please sign in to comment.