1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 19:32:19 +01:00
This commit is contained in:
Otto Winter
2019-10-18 16:43:37 +02:00
parent 95a74a7f19
commit 1bf55c130b

View File

@@ -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_;
} }