Add inclusion state to zwave_js/network_status WS API cmd (#65398)
This commit is contained in:
parent
42b5ce184c
commit
a1b81b2de4
3 changed files with 12 additions and 6 deletions
|
@ -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),
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue