forked from home-assistant/core
Update format
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
@@ -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": [
|
||||
{
|
||||
|
Reference in New Issue
Block a user