Add identifiers to device registry api output (#38427)

This commit is contained in:
Charles Garwood authored and GitHub committed 2020-07-31 15:47:01 +02:00
1 parent c795c68bc0
commit 49cbc9735c
2 files changed
+3

No files matched your search

@@ -73,6 +73,7 @@ def _entry_dict(entry):
"sw_version": entry.sw_version,
"entry_type": entry.entry_type,
"id": entry.id,
"identifiers": list(entry.identifiers),
"via_device_id": entry.via_device_id,
"area_id": entry.area_id,
"name_by_user": entry.name_by_user,
@@ -46,6 +46,7 @@ async def test_list_devices(hass, client, registry):
{
"config_entries": ["1234"],
"connections": [["ethernet", "12:34:56:78:90:AB:CD:EF"]],
"identifiers": [["bridgeid", "0123"]],
"manufacturer": "manufacturer",
"model": "model",
"name": None,
@@ -58,6 +59,7 @@ async def test_list_devices(hass, client, registry):
{
"config_entries": ["1234"],
"connections": [],
"identifiers": [["bridgeid", "1234"]],
"manufacturer": "manufacturer",
"model": "model",
"name": None,