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