We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d6802e commit 618ada6Copy full SHA for 618ada6
homeassistant/components/reolink/__init__.py
@@ -233,6 +233,14 @@ def async_privacy_mode_change() -> None:
233
"privacy_mode_change", async_privacy_mode_change, 623
234
)
235
236
+ # ensure host device is setup before connected camera devices that use via_device
237
+ device_registry = dr.async_get(hass)
238
+ device_registry.async_get_or_create(
239
+ config_entry_id=config_entry.entry_id,
240
+ identifiers={(DOMAIN, host.unique_id)},
241
+ connections={(dr.CONNECTION_NETWORK_MAC, host.api.mac_address)},
242
+ )
243
+
244
await hass.config_entries.async_forward_entry_setups(config_entry, PLATFORMS)
245
246
config_entry.async_on_unload(
0 commit comments