1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +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();
}
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
this->transition_length_ = this->parent_->default_transition_length_;
}