diff --git a/homeassistant/components/hue/migration.py b/homeassistant/components/hue/migration.py index 2da13ce8bf2..408ba3fc8e0 100644 --- a/homeassistant/components/hue/migration.py +++ b/homeassistant/components/hue/migration.py @@ -166,6 +166,9 @@ async def handle_v2_migration(hass: core.HomeAssistant, entry: ConfigEntry) -> N continue v1_id = f"/groups/{ent.unique_id}" hue_group = api.groups.room.get_by_v1_id(v1_id) + if hue_group is None or hue_group.grouped_light is None: + # try again with zone + hue_group = api.groups.zone.get_by_v1_id(v1_id) if hue_group is None or hue_group.grouped_light is None: # this may happen if we're looking at some orphaned entity LOGGER.warning(