mirror of
https://github.com/esphome/esphome.git
synced 2025-11-16 06:45:48 +00:00
safer
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user