mirror of
https://github.com/home-assistant/core.git
synced 2026-06-06 07:26:58 +01:00
Fix for controlling Hue switch entities (#113064)
This commit is contained in:
committed by
GitHub
parent
2792a5f016
commit
0a7598e2d4
@@ -58,7 +58,7 @@ async def async_setup_entry(
|
||||
event_type: EventType, resource: BehaviorInstance | LightLevel | Motion
|
||||
) -> None:
|
||||
"""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
|
||||
for item in controller:
|
||||
|
||||
Reference in New Issue
Block a user