Include Z-Wave JS lowSecurityReason in node added websocket message (#128896)

* Propagate lowSecurityReason to FE when adding a zwavejs device insecurely

* update tests
pull/128892/head^2
Petar Petrov 2024-10-21 15:27:04 +03:00 committed by GitHub
parent 62773fa88a
commit 106746ce58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -740,6 +740,7 @@ async def websocket_add_node(
"status": node.status,
"ready": node.ready,
"low_security": event["result"].get("lowSecurity", False),
"low_security_reason": event["result"].get("lowSecurityReason"),
}
connection.send_message(
websocket_api.event_message(

View File

@ -590,6 +590,7 @@ async def test_add_node(
"status": 0,
"ready": False,
"low_security": False,
"low_security_reason": None,
}
assert msg["event"]["node"] == node_details