Update format

This commit is contained in:
Paulus Schoutsen
2024-10-24 17:33:00 +00:00
parent d7d2b7ad76
commit b3a32b5f59
2 changed files with 3 additions and 0 deletions

View File

@@ -433,6 +433,7 @@ def async_devices_payload(hass: HomeAssistant) -> dict:
devices[new_indexes[from_device]]["via_device"] = new_indexes[via_device]
return {
"version": "home-assistant:1",
"no_model_id": sorted(integrations_without_model_id),
"devices": devices,
}

View File

@@ -932,6 +932,7 @@ async def test_devices_payload(
) -> None:
"""Test devices payload."""
assert async_devices_payload(hass) == {
"version": "home-assistant:1",
"no_model_id": [],
"devices": [],
}
@@ -998,6 +999,7 @@ async def test_devices_payload(
)
assert async_devices_payload(hass) == {
"version": "home-assistant:1",
"no_model_id": ["no_model_id"],
"devices": [
{