Fix zwave_js set_config_parameter WS api regression (#109042)

This commit is contained in:
kpine 2024-01-29 09:04:05 -08:00 committed by GitHub
parent f456e3a071
commit be8af7bea3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -1693,7 +1693,7 @@ async def websocket_set_config_parameter(
msg[ID],
{
VALUE_ID: zwave_value.value_id,
STATUS: cmd_status,
STATUS: cmd_status.status,
},
)

View file

@ -2794,6 +2794,7 @@ async def test_set_config_parameter(
msg = await ws_client.receive_json()
assert msg["success"]
assert msg["result"]["status"] == "queued"
assert len(client.async_send_command_no_wait.call_args_list) == 1
args = client.async_send_command_no_wait.call_args[0][0]
@ -2826,6 +2827,7 @@ async def test_set_config_parameter(
msg = await ws_client.receive_json()
assert msg["success"]
assert msg["result"]["status"] == "queued"
assert len(client.async_send_command_no_wait.call_args_list) == 1
args = client.async_send_command_no_wait.call_args[0][0]
@ -2857,6 +2859,7 @@ async def test_set_config_parameter(
msg = await ws_client.receive_json()
assert msg["success"]
assert msg["result"]["status"] == "queued"
assert len(client.async_send_command_no_wait.call_args_list) == 1
args = client.async_send_command_no_wait.call_args[0][0]