From a2e12ae6fcf64210ccff59429c6a92caa7a41d2f Mon Sep 17 00:00:00 2001 From: Benjamin Auquite Date: Mon, 3 Apr 2023 17:52:33 -0500 Subject: [PATCH] unpack list `entity_ids` --- custom_components/adaptive_lighting/switch.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/custom_components/adaptive_lighting/switch.py b/custom_components/adaptive_lighting/switch.py index 910ee85b..7824e777 100644 --- a/custom_components/adaptive_lighting/switch.py +++ b/custom_components/adaptive_lighting/switch.py @@ -1716,8 +1716,9 @@ class TurnOnOffListener: self._name, entity_id, ) - self.mark_as_manual_control(entity_ids) - _fire_manual_control_event(switch, entity_ids, event.context.id) + for eid in entity_ids: + self.mark_as_manual_control(eid) + _fire_manual_control_event(switch, eid, event.context.id) async def state_changed_event_listener(self, event: Event) -> None: """Track 'state_changed' events."""