Bump zwave-js-server-python to 0.50.1 (#94760)
* Bump zwave-js-server-python to 0.50.0 * handle additional upstream changes * Additional changes * fix tests * Convert two similar functions to be one function * Fix docstring * Remove conditional pydantic import * Revert scope change * Bump zwave-js-server-python * Set default return value for command * Remove line breaks * Add coverage
This commit is contained in:
parent
2841cbbed2
commit
5d3d66e47d
28 changed files with 171 additions and 128 deletions
|
@ -276,14 +276,16 @@ async def test_subscribe_node_status(
|
|||
msg = await ws_client.receive_json()
|
||||
assert msg["success"]
|
||||
|
||||
node.data["ready"] = True
|
||||
new_node_data = deepcopy(multisensor_6_state)
|
||||
new_node_data["ready"] = True
|
||||
|
||||
event = Event(
|
||||
"ready",
|
||||
{
|
||||
"source": "node",
|
||||
"event": "ready",
|
||||
"nodeId": node.node_id,
|
||||
"nodeState": node.data,
|
||||
"nodeState": new_node_data,
|
||||
},
|
||||
)
|
||||
node.receive_event(event)
|
||||
|
@ -1715,7 +1717,7 @@ async def test_remove_node(
|
|||
assert len(client.async_send_command.call_args_list) == 1
|
||||
assert client.async_send_command.call_args[0][0] == {
|
||||
"command": "controller.begin_exclusion",
|
||||
"strategy": 0,
|
||||
"options": {"strategy": 0},
|
||||
}
|
||||
|
||||
# Test FailedZWaveCommand is caught
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue