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_status
pull/57131/head
Raman Gupta 2021-10-05 11:23:44 -04:00 committed by GitHub
parent 80a04124a2
commit 3c074ab865
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

View File

@ -342,6 +342,8 @@ async def websocket_node_status(
"status": node.status, "status": node.status,
"is_secure": node.is_secure, "is_secure": node.is_secure,
"ready": node.ready, "ready": node.ready,
"zwave_plus_version": node.zwave_plus_version,
"highest_security_class": node.highest_security_class,
} }
connection.send_result( connection.send_result(
msg[ID], msg[ID],

View File

@ -147,6 +147,8 @@ async def test_node_status(hass, multisensor_6, integration, hass_ws_client):
assert result["is_routing"] assert result["is_routing"]
assert not result["is_secure"] assert not result["is_secure"]
assert result["status"] == 1 assert result["status"] == 1
assert result["zwave_plus_version"] == 1
assert result["highest_security_class"] == SecurityClass.S0_LEGACY
# Test getting non-existent node fails # Test getting non-existent node fails
await ws_client.send_json( await ws_client.send_json(

View File

@ -1824,5 +1824,6 @@
"label": "Z-Wave chip hardware version" "label": "Z-Wave chip hardware version"
} }
} }
] ],
"highestSecurityClass": 7
} }