diff --git a/homeassistant/helpers/device_registry.py b/homeassistant/helpers/device_registry.py index 82b36a3fa38b78..61773aaaaa304c 100644 --- a/homeassistant/helpers/device_registry.py +++ b/homeassistant/helpers/device_registry.py @@ -2256,7 +2256,8 @@ def async_get_or_create( # noqa: C901 else: connections = _normalize_connections(connections) - # A child is referenced via parent_device_id, not adopted by a device info + # We do not allow registering a device without parent_device_id if the + # identifiers match an existing child. if ( matched_child_device := self.child_devices.get_entry( identifiers=identifiers, config_entry_id=config_entry_id