mirror of
https://github.com/home-assistant/core.git
synced 2026-08-24 10:13:52 -05:00
Use consistent node_id key in Z-Wave JS node statistics events (#179360)
This commit is contained in:
@@ -2910,7 +2910,7 @@ async def websocket_subscribe_node_statistics(
|
||||
{
|
||||
"event": "statistics updated",
|
||||
"source": "node",
|
||||
"nodeId": node.node_id,
|
||||
"node_id": node.node_id,
|
||||
**_get_node_statistics_dict(hass, node.statistics),
|
||||
},
|
||||
)
|
||||
|
||||
@@ -5149,7 +5149,7 @@ async def test_subscribe_node_statistics(
|
||||
assert msg["event"] == {
|
||||
"source": "node",
|
||||
"event": "statistics updated",
|
||||
"nodeId": multisensor_6.node_id,
|
||||
"node_id": multisensor_6.node_id,
|
||||
"commands_tx": 0,
|
||||
"commands_rx": 0,
|
||||
"commands_dropped_tx": 0,
|
||||
|
||||
Reference in New Issue
Block a user