From f1f4d33745ce4047ccc220218f77055447161402 Mon Sep 17 00:00:00 2001 From: Benjamin Auquite Date: Wed, 12 Apr 2023 01:50:54 -0500 Subject: [PATCH] Update switch.py --- custom_components/adaptive_lighting/switch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/adaptive_lighting/switch.py b/custom_components/adaptive_lighting/switch.py index f95dd70a..5015854f 100644 --- a/custom_components/adaptive_lighting/switch.py +++ b/custom_components/adaptive_lighting/switch.py @@ -1734,11 +1734,12 @@ class TurnOnOffListener: ) async def reset(): - raise ValueError("THIS SHOULD BE CALLED") + self.transition_timers[light] = None _LOGGER.debug( "Transition finished for light %s", light, ) + raise ValueError("THIS SHOULD BE CALLED") self._handle_timer(light, self.transition_timers, last_transition, reset)