Add identifiers to device registry api output (#38427)
parent
c795c68bc0
commit
49cbc9735c
|
@ -73,6 +73,7 @@ def _entry_dict(entry):
|
||||||
"sw_version": entry.sw_version,
|
"sw_version": entry.sw_version,
|
||||||
"entry_type": entry.entry_type,
|
"entry_type": entry.entry_type,
|
||||||
"id": entry.id,
|
"id": entry.id,
|
||||||
|
"identifiers": list(entry.identifiers),
|
||||||
"via_device_id": entry.via_device_id,
|
"via_device_id": entry.via_device_id,
|
||||||
"area_id": entry.area_id,
|
"area_id": entry.area_id,
|
||||||
"name_by_user": entry.name_by_user,
|
"name_by_user": entry.name_by_user,
|
||||||
|
|
|
@ -46,6 +46,7 @@ async def test_list_devices(hass, client, registry):
|
||||||
{
|
{
|
||||||
"config_entries": ["1234"],
|
"config_entries": ["1234"],
|
||||||
"connections": [["ethernet", "12:34:56:78:90:AB:CD:EF"]],
|
"connections": [["ethernet", "12:34:56:78:90:AB:CD:EF"]],
|
||||||
|
"identifiers": [["bridgeid", "0123"]],
|
||||||
"manufacturer": "manufacturer",
|
"manufacturer": "manufacturer",
|
||||||
"model": "model",
|
"model": "model",
|
||||||
"name": None,
|
"name": None,
|
||||||
|
@ -58,6 +59,7 @@ async def test_list_devices(hass, client, registry):
|
||||||
{
|
{
|
||||||
"config_entries": ["1234"],
|
"config_entries": ["1234"],
|
||||||
"connections": [],
|
"connections": [],
|
||||||
|
"identifiers": [["bridgeid", "1234"]],
|
||||||
"manufacturer": "manufacturer",
|
"manufacturer": "manufacturer",
|
||||||
"model": "model",
|
"model": "model",
|
||||||
"name": None,
|
"name": None,
|
||||||
|
|
Loading…
Reference in New Issue