Revert accidental change to Google

This commit is contained in:
Paulus Schoutsen
2025-06-23 22:16:48 -04:00
committed by GitHub
parent d8caa17266
commit f1fa72ec4c

View File

@ -267,6 +267,11 @@ 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,