diff --git a/homeassistant/components/hue/switch.py b/homeassistant/components/hue/switch.py index c9da30a779c..c0689a85f21 100644 --- a/homeassistant/components/hue/switch.py +++ b/homeassistant/components/hue/switch.py @@ -57,7 +57,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: