Skip to content
Snippets Groups Projects
Unverified Commit 106746ce authored by Petar Petrov's avatar Petar Petrov Committed by GitHub
Browse files

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

* Propagate lowSecurityReason to FE when adding a zwavejs device insecurely

* update tests
parent 62773fa8
No related branches found
No related tags found
No related merge requests found
......@@ -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(
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment