mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 21:44:55 +01:00
Format
This commit is contained in:
parent
95a74a7f19
commit
1bf55c130b
1 changed files with 2 additions and 1 deletions
|
@ -463,7 +463,8 @@ LightColorValues LightCall::validate_() {
|
||||||
this->transition_length_.reset();
|
this->transition_length_.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this->has_transition_() && !this->has_flash_() && (!this->has_effect_() || *this->effect_ == 0) && supports_transition) {
|
if (!this->has_transition_() && !this->has_flash_() && (!this->has_effect_() || *this->effect_ == 0) &&
|
||||||
|
supports_transition) {
|
||||||
// nothing specified and light supports transitions, set default transition length
|
// nothing specified and light supports transitions, set default transition length
|
||||||
this->transition_length_ = this->parent_->default_transition_length_;
|
this->transition_length_ = this->parent_->default_transition_length_;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue