Update current_based_cover bugfix (#5587)

This commit is contained in:
Roger Busser 2023-10-25 20:31:39 +02:00 committed by Jesse Hills
parent 390766eb67
commit 35039b45e4
No known key found for this signature in database
GPG key ID: BEAAE804EFD8E83A

View file

@ -104,7 +104,8 @@ void CurrentBasedCover::loop() {
ESP_LOGD(TAG, "'%s' - Close position reached. Took %.1fs.", this->name_.c_str(), dur);
this->direction_idle_(COVER_CLOSED);
}
} else if (now - this->start_dir_time_ > this->max_duration_) {
}
if (now - this->start_dir_time_ > this->max_duration_) {
ESP_LOGD(TAG, "'%s' - Max duration reached. Stopping cover.", this->name_.c_str());
this->direction_idle_();
}