From 1c6c27441be4b8cd4138ec89bff1cc7dcc0eafae Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Mon, 31 Jul 2023 18:54:19 -0700 Subject: [PATCH] fix --- custom_components/adaptive_lighting/switch.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/custom_components/adaptive_lighting/switch.py b/custom_components/adaptive_lighting/switch.py index 05d8a89d..a4708f31 100644 --- a/custom_components/adaptive_lighting/switch.py +++ b/custom_components/adaptive_lighting/switch.py @@ -2159,17 +2159,19 @@ class AdaptiveLightingManager: last_service_data = self.last_service_data.get(light) if last_service_data is None: _LOGGER.debug( - "No last service data for light %s, continuing...", + "No last service data for light %s, not starting timer.", light, ) return + last_transition = last_service_data.get(ATTR_TRANSITION) if not last_transition: _LOGGER.debug( - "No transition in last adapt for light %s, continuing...", + "No transition in last adapt for light %s, not starting timer.", light, ) return + _LOGGER.debug( "Start transition timer of %s seconds for light %s", last_transition,