mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix Hue migration (#61030)
This commit is contained in:
parent
3eeb855679
commit
11e2f51681
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user