mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
parent
0431e031ba
commit
c472ead4fd
@ -96,6 +96,7 @@ async def async_setup_entry(
|
|||||||
):
|
):
|
||||||
device_info = DeviceInfo(
|
device_info = DeviceInfo(
|
||||||
identifiers=device.identifiers,
|
identifiers=device.identifiers,
|
||||||
|
connections=device.connections,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
device_info = None
|
device_info = None
|
||||||
|
@ -600,6 +600,7 @@ async def test_device_id(hass: HomeAssistant) -> None:
|
|||||||
source_device_entry = device_registry.async_get_or_create(
|
source_device_entry = device_registry.async_get_or_create(
|
||||||
config_entry_id=source_config_entry.entry_id,
|
config_entry_id=source_config_entry.entry_id,
|
||||||
identifiers={("sensor", "identifier_test")},
|
identifiers={("sensor", "identifier_test")},
|
||||||
|
connections={("mac", "30:31:32:33:34:35")},
|
||||||
)
|
)
|
||||||
source_entity = entity_registry.async_get_or_create(
|
source_entity = entity_registry.async_get_or_create(
|
||||||
"sensor",
|
"sensor",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user