Add additional properties to node_status WS cmd (#56927)
* Add node.zwave_plus_version to node_status WS command * Add highest security class to node_statuspull/57131/head
parent
80a04124a2
commit
3c074ab865
|
@ -342,6 +342,8 @@ async def websocket_node_status(
|
|||
"status": node.status,
|
||||
"is_secure": node.is_secure,
|
||||
"ready": node.ready,
|
||||
"zwave_plus_version": node.zwave_plus_version,
|
||||
"highest_security_class": node.highest_security_class,
|
||||
}
|
||||
connection.send_result(
|
||||
msg[ID],
|
||||
|
|
|
@ -147,6 +147,8 @@ async def test_node_status(hass, multisensor_6, integration, hass_ws_client):
|
|||
assert result["is_routing"]
|
||||
assert not result["is_secure"]
|
||||
assert result["status"] == 1
|
||||
assert result["zwave_plus_version"] == 1
|
||||
assert result["highest_security_class"] == SecurityClass.S0_LEGACY
|
||||
|
||||
# Test getting non-existent node fails
|
||||
await ws_client.send_json(
|
||||
|
|
|
@ -1824,5 +1824,6 @@
|
|||
"label": "Z-Wave chip hardware version"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"highestSecurityClass": 7
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue