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:
Raman Gupta 2021-09-09 14:04:27 -04:00 committed by GitHub
parent 88dbc6373f
commit 113288cb1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 40 additions and 3 deletions

View file

@ -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()]},
)