File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
homeassistant/components/hue/v2 Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 99from aiohue .v2 .controllers .events import EventType
1010from aiohue .v2 .controllers .groups import GroupedLight , Room , Zone
1111from aiohue .v2 .models .feature import DynamicStatus
12+ from aiohue .v2 .models .resource import ResourceTypes
1213
1314from 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 (
You can’t perform that action at this time.
0 commit comments