Include Z-Wave JS lowSecurityReason in node added websocket message (#128896)
* Propagate lowSecurityReason to FE when adding a zwavejs device insecurely * update testspull/128892/head^2
parent
62773fa88a
commit
106746ce58
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue