Add inclusion state to zwave_js/network_status WS API cmd (#65398)

This commit is contained in:
Raman Gupta 2022-02-17 05:38:20 -05:00 committed by GitHub
parent 42b5ce184c
commit a1b81b2de4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 6 deletions

View file

@ -367,6 +367,7 @@ async def websocket_network_status(
) -> None:
"""Get the status of the Z-Wave JS network."""
controller = client.driver.controller
await controller.async_get_state()
data = {
"client": {
"ws_server_url": client.ws_server_url,
@ -393,6 +394,7 @@ async def websocket_network_status(
"suc_node_id": controller.suc_node_id,
"supports_timers": controller.supports_timers,
"is_heal_network_active": controller.is_heal_network_active,
"inclusion_state": controller.inclusion_state,
"nodes": list(client.driver.controller.nodes),
},
}