Skip to content

Commit 46fa98e

Browse files
authored
Fix Private Groups in Hue integration cause delay in startup (#151896)
1 parent 96e6600 commit 46fa98e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

homeassistant/components/hue/v2/group.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from aiohue.v2.controllers.events import EventType
1010
from aiohue.v2.controllers.groups import GroupedLight, Room, Zone
1111
from aiohue.v2.models.feature import DynamicStatus
12+
from aiohue.v2.models.resource import ResourceTypes
1213

1314
from homeassistant.components.light import (
1415
ATTR_BRIGHTNESS,
@@ -66,7 +67,11 @@ async def async_add_light(event_type: EventType, resource: GroupedLight) -> None
6667

6768
# add current items
6869
for item in api.groups.grouped_light.items:
69-
await async_add_light(EventType.RESOURCE_ADDED, item)
70+
if item.owner.rtype not in [
71+
ResourceTypes.BRIDGE_HOME,
72+
ResourceTypes.PRIVATE_GROUP,
73+
]:
74+
await async_add_light(EventType.RESOURCE_ADDED, item)
7075

7176
# register listener for new grouped_light
7277
config_entry.async_on_unload(

0 commit comments

Comments
 (0)