Remove duplicated subentry device update in Google Gen AI + add merge test (#147396)

* late comments on Google subentries

* Add test that merges 2 config entries
This commit is contained in:
Paulus Schoutsen
2025-06-23 22:34:06 -04:00
committed by GitHub
parent 56f4039ac2
commit 0cf7952964
2 changed files with 121 additions and 5 deletions

View File

@@ -267,11 +267,6 @@ async def async_migrate_integration(hass: HomeAssistant) -> None:
add_config_entry_id=parent_entry.entry_id,
)
if parent_entry.entry_id != entry.entry_id:
device_registry.async_update_device(
device.id,
add_config_subentry_id=subentry.subentry_id,
add_config_entry_id=parent_entry.entry_id,
)
device_registry.async_update_device(
device.id,
remove_config_entry_id=entry.entry_id,