forked from home-assistant/core
Add integration back
This commit is contained in:
@@ -414,6 +414,7 @@ def async_devices_payload(hass: HomeAssistant) -> dict:
|
|||||||
new_indexes[device.id] = len(devices)
|
new_indexes[device.id] = len(devices)
|
||||||
devices.append(
|
devices.append(
|
||||||
{
|
{
|
||||||
|
"integration": config_entry.domain,
|
||||||
"manufacturer": device.manufacturer,
|
"manufacturer": device.manufacturer,
|
||||||
"model_id": device.model_id,
|
"model_id": device.model_id,
|
||||||
"model": device.model,
|
"model": device.model,
|
||||||
|
@@ -1008,6 +1008,7 @@ async def test_devices_payload(
|
|||||||
"model": "test-model",
|
"model": "test-model",
|
||||||
"sw_version": "test-sw-version",
|
"sw_version": "test-sw-version",
|
||||||
"hw_version": "test-hw-version",
|
"hw_version": "test-hw-version",
|
||||||
|
"integration": "test",
|
||||||
"has_suggested_area": True,
|
"has_suggested_area": True,
|
||||||
"has_configuration_url": True,
|
"has_configuration_url": True,
|
||||||
"via_device": None,
|
"via_device": None,
|
||||||
@@ -1018,6 +1019,7 @@ async def test_devices_payload(
|
|||||||
"model": None,
|
"model": None,
|
||||||
"sw_version": None,
|
"sw_version": None,
|
||||||
"hw_version": None,
|
"hw_version": None,
|
||||||
|
"integration": "test",
|
||||||
"has_suggested_area": False,
|
"has_suggested_area": False,
|
||||||
"has_configuration_url": False,
|
"has_configuration_url": False,
|
||||||
"via_device": 0,
|
"via_device": 0,
|
||||||
|
Reference in New Issue
Block a user