mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 02:37:08 +00:00
Include Z-Wave JS lowSecurityReason in node added websocket message (#128896)
* Propagate lowSecurityReason to FE when adding a zwavejs device insecurely * update tests
This commit is contained in:
parent
62773fa88a
commit
106746ce58
@ -740,6 +740,7 @@ async def websocket_add_node(
|
|||||||
"status": node.status,
|
"status": node.status,
|
||||||
"ready": node.ready,
|
"ready": node.ready,
|
||||||
"low_security": event["result"].get("lowSecurity", False),
|
"low_security": event["result"].get("lowSecurity", False),
|
||||||
|
"low_security_reason": event["result"].get("lowSecurityReason"),
|
||||||
}
|
}
|
||||||
connection.send_message(
|
connection.send_message(
|
||||||
websocket_api.event_message(
|
websocket_api.event_message(
|
||||||
|
@ -590,6 +590,7 @@ async def test_add_node(
|
|||||||
"status": 0,
|
"status": 0,
|
||||||
"ready": False,
|
"ready": False,
|
||||||
"low_security": False,
|
"low_security": False,
|
||||||
|
"low_security_reason": None,
|
||||||
}
|
}
|
||||||
assert msg["event"]["node"] == node_details
|
assert msg["event"]["node"] == node_details
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user