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