Use consistent node_id key in Z-Wave JS node statistics events (#179360)

This commit is contained in:
Petar Petrov
2026-08-18 13:03:44 +02:00
committed by GitHub
parent 9a51258542
commit f59ca4bb59
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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),
},
)
+1 -1
View File
@@ -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,