diff --git a/homeassistant/components/zwave_js/api.py b/homeassistant/components/zwave_js/api.py index 7f4855bfbe567f..8d14c8ed5b6147 100644 --- a/homeassistant/components/zwave_js/api.py +++ b/homeassistant/components/zwave_js/api.py @@ -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, }, ) diff --git a/tests/components/zwave_js/test_api.py b/tests/components/zwave_js/test_api.py index aa20bd3bb8456a..bf5ad88447e99b 100644 --- a/tests/components/zwave_js/test_api.py +++ b/tests/components/zwave_js/test_api.py @@ -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]