Fix zwave_js/node_state WS API command (#55979)
* Fix zwave_js/node_state WS API command * Add negative assertion check to avoid regression * Update tests/components/zwave_js/test_api.py Co-authored-by: jan iversen <jancasacondor@gmail.com> * use constant Co-authored-by: jan iversen <jancasacondor@gmail.com>
This commit is contained in:
parent
88dbc6373f
commit
113288cb1f
3 changed files with 40 additions and 3 deletions
|
@ -307,7 +307,7 @@ async def websocket_node_state(
|
|||
"""Get the state data of a Z-Wave JS node."""
|
||||
connection.send_result(
|
||||
msg[ID],
|
||||
node.data,
|
||||
{**node.data, "values": [value.data for value in node.values.values()]},
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue