mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 13:15:18 +02:00
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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user