mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 13:45:12 +02:00
@@ -162,6 +162,7 @@ async def async_setup_entry(
|
||||
):
|
||||
device_info = DeviceInfo(
|
||||
identifiers=device.identifiers,
|
||||
connections=device.connections,
|
||||
)
|
||||
else:
|
||||
device_info = None
|
||||
|
@@ -688,6 +688,7 @@ async def test_device_id(hass: HomeAssistant) -> None:
|
||||
source_device_entry = device_registry.async_get_or_create(
|
||||
config_entry_id=source_config_entry.entry_id,
|
||||
identifiers={("sensor", "identifier_test")},
|
||||
connections={("mac", "30:31:32:33:34:35")},
|
||||
)
|
||||
source_entity = entity_registry.async_get_or_create(
|
||||
"sensor",
|
||||
|
Reference in New Issue
Block a user