mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 05:24:53 +01:00
Update current_based_cover bugfix (#5587)
This commit is contained in:
parent
28aedae8d7
commit
fdef6c6d46
1 changed files with 2 additions and 1 deletions
|
@ -104,7 +104,8 @@ void CurrentBasedCover::loop() {
|
||||||
ESP_LOGD(TAG, "'%s' - Close position reached. Took %.1fs.", this->name_.c_str(), dur);
|
ESP_LOGD(TAG, "'%s' - Close position reached. Took %.1fs.", this->name_.c_str(), dur);
|
||||||
this->direction_idle_(COVER_CLOSED);
|
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());
|
ESP_LOGD(TAG, "'%s' - Max duration reached. Stopping cover.", this->name_.c_str());
|
||||||
this->direction_idle_();
|
this->direction_idle_();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue