Fix for controlling Hue switch entities (#113064)
parent
8ac5da95f8
commit
a2e9ecfcde
|
@ -57,7 +57,7 @@ async def async_setup_entry(
|
||||||
event_type: EventType, resource: BehaviorInstance | LightLevel | Motion
|
event_type: EventType, resource: BehaviorInstance | LightLevel | Motion
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Add entity from Hue resource."""
|
"""Add entity from Hue resource."""
|
||||||
async_add_entities([switch_class(bridge, api.sensors.motion, resource)])
|
async_add_entities([switch_class(bridge, controller, resource)])
|
||||||
|
|
||||||
# add all current items in controller
|
# add all current items in controller
|
||||||
for item in controller:
|
for item in controller:
|
||||||
|
|
Loading…
Reference in New Issue