Add is_controller_node flag to WS node status (#66404)
This commit is contained in:
parent
a8304392b5
commit
a7e5f38a3e
3 changed files with 4 additions and 1 deletions
|
@ -462,6 +462,7 @@ async def websocket_node_status(
|
||||||
"ready": node.ready,
|
"ready": node.ready,
|
||||||
"zwave_plus_version": node.zwave_plus_version,
|
"zwave_plus_version": node.zwave_plus_version,
|
||||||
"highest_security_class": node.highest_security_class,
|
"highest_security_class": node.highest_security_class,
|
||||||
|
"is_controller_node": node.is_controller_node,
|
||||||
}
|
}
|
||||||
connection.send_result(
|
connection.send_result(
|
||||||
msg[ID],
|
msg[ID],
|
||||||
|
|
|
@ -1825,5 +1825,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"highestSecurityClass": 7
|
"highestSecurityClass": 7,
|
||||||
|
"isControllerNode": false
|
||||||
}
|
}
|
||||||
|
|
|
@ -168,6 +168,7 @@ async def test_node_status(hass, multisensor_6, integration, hass_ws_client):
|
||||||
assert result["status"] == 1
|
assert result["status"] == 1
|
||||||
assert result["zwave_plus_version"] == 1
|
assert result["zwave_plus_version"] == 1
|
||||||
assert result["highest_security_class"] == SecurityClass.S0_LEGACY
|
assert result["highest_security_class"] == SecurityClass.S0_LEGACY
|
||||||
|
assert not result["is_controller_node"]
|
||||||
|
|
||||||
# Test getting non-existent node fails
|
# Test getting non-existent node fails
|
||||||
await ws_client.send_json(
|
await ws_client.send_json(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue