1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-16 14:55:50 +00:00
This commit is contained in:
J. Nick Koston
2025-11-12 21:49:58 -06:00
parent 9b458d25ea
commit 20649ce8ce

View File

@@ -24,8 +24,8 @@ void LightState::setup() {
effect->init_internal(this); effect->init_internal(this);
} }
// Start with loop disabled - it will be enabled by start_transition_/start_effect_ if needed // Start with loop disabled if idle - respects any effects/transitions set up during initialization
this->disable_loop(); this->disable_loop_if_idle_();
// When supported color temperature range is known, initialize color temperature setting within bounds. // When supported color temperature range is known, initialize color temperature setting within bounds.
auto traits = this->get_traits(); auto traits = this->get_traits();