mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 02:07:09 +00:00
Adjust zwave_js diagnostics (#85524)
This commit is contained in:
parent
72c9ca2567
commit
aa5b29c560
@ -106,7 +106,7 @@ def get_device_entities(
|
||||
|
||||
async def async_get_config_entry_diagnostics(
|
||||
hass: HomeAssistant, config_entry: ConfigEntry
|
||||
) -> list[dict]:
|
||||
) -> dict[str, Any]:
|
||||
"""Return diagnostics for a config entry."""
|
||||
msgs: list[dict] = async_redact_data(
|
||||
await dump_msgs(
|
||||
@ -119,12 +119,12 @@ async def async_get_config_entry_diagnostics(
|
||||
network_state["result"]["state"]["nodes"] = [
|
||||
redact_node_state(node) for node in network_state["result"]["state"]["nodes"]
|
||||
]
|
||||
return [*handshake_msgs, network_state]
|
||||
return {"messages": [*handshake_msgs, network_state]}
|
||||
|
||||
|
||||
async def async_get_device_diagnostics(
|
||||
hass: HomeAssistant, config_entry: ConfigEntry, device: dr.DeviceEntry
|
||||
) -> dict:
|
||||
) -> dict[str, Any]:
|
||||
"""Return diagnostics for a device."""
|
||||
client: Client = hass.data[DOMAIN][config_entry.entry_id][DATA_CLIENT]
|
||||
identifiers = get_home_and_node_id_from_device_entry(device)
|
||||
|
@ -1,4 +1,5 @@
|
||||
[
|
||||
{
|
||||
"messages": [
|
||||
{
|
||||
"type": "version",
|
||||
"driverVersion": "8.11.6",
|
||||
@ -45,12 +46,12 @@
|
||||
"productType": 1,
|
||||
"productId": 90,
|
||||
"supportedFunctionTypes": [
|
||||
2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 16, 17, 18, 19, 20, 21, 22, 23, 28,
|
||||
32, 33, 34, 35, 36, 39, 40, 41, 42, 43, 44, 45, 46, 47, 55, 56, 57,
|
||||
58, 59, 60, 63, 65, 66, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 79,
|
||||
80, 81, 83, 84, 85, 86, 87, 88, 94, 95, 96, 97, 98, 99, 102, 103,
|
||||
120, 128, 144, 146, 147, 152, 161, 180, 182, 183, 184, 185, 186,
|
||||
189, 190, 191, 208, 209, 210, 211, 212, 238, 239
|
||||
2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 16, 17, 18, 19, 20, 21, 22, 23,
|
||||
28, 32, 33, 34, 35, 36, 39, 40, 41, 42, 43, 44, 45, 46, 47, 55,
|
||||
56, 57, 58, 59, 60, 63, 65, 66, 68, 69, 70, 71, 72, 73, 74, 75,
|
||||
76, 77, 79, 80, 81, 83, 84, 85, 86, 87, 88, 94, 95, 96, 97, 98,
|
||||
99, 102, 103, 120, 128, 144, 146, 147, 152, 161, 180, 182, 183,
|
||||
184, 185, 186, 189, 190, 191, 208, 209, 210, 211, 212, 238, 239
|
||||
],
|
||||
"sucNodeId": 1,
|
||||
"supportsTimers": false,
|
||||
@ -1933,4 +1934,5 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user