Fix for controlling Hue switch entities (#113064)

pull/113250/head
Marcel van der Veldt 2024-03-11 14:49:52 +01:00 committed by Franck Nijhof
parent 8ac5da95f8
commit a2e9ecfcde
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
1 changed files with 1 additions and 1 deletions

View File

@ -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: