From 20649ce8cea1a1f315c4c40b6cc9fcbdc8c85ca8 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 12 Nov 2025 21:49:58 -0600 Subject: [PATCH] safer --- esphome/components/light/light_state.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/light/light_state.cpp b/esphome/components/light/light_state.cpp index f3b8347507..b9e941c9c9 100644 --- a/esphome/components/light/light_state.cpp +++ b/esphome/components/light/light_state.cpp @@ -24,8 +24,8 @@ void LightState::setup() { effect->init_internal(this); } - // Start with loop disabled - it will be enabled by start_transition_/start_effect_ if needed - this->disable_loop(); + // Start with loop disabled if idle - respects any effects/transitions set up during initialization + this->disable_loop_if_idle_(); // When supported color temperature range is known, initialize color temperature setting within bounds. auto traits = this->get_traits();