From 0a7598e2d495351dec36f3e3e6186889865c3190 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Mon, 11 Mar 2024 14:49:52 +0100 Subject: [PATCH] Fix for controlling Hue switch entities (#113064) --- homeassistant/components/hue/switch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/hue/switch.py b/homeassistant/components/hue/switch.py index 022a12f6ffc107..b4bc57acf2dc84 100644 --- a/homeassistant/components/hue/switch.py +++ b/homeassistant/components/hue/switch.py @@ -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: