Skip to content

Commit

Permalink
Fix for controlling Hue switch entities (#113064)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Mar 11, 2024
1 parent 2792a5f commit 0a7598e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/hue/switch.py
Expand Up @@ -58,7 +58,7 @@ def async_add_entity(
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:
Expand Down

0 comments on commit 0a7598e

Please sign in to comment.