mirror of
https://github.com/esphome/esphome.git
synced 2024-11-26 17:05:21 +01:00
current-based cover fix copy paste mistake (#4124)
This commit is contained in:
parent
2b4fdd6c39
commit
eb2a0f45db
1 changed files with 1 additions and 1 deletions
|
@ -179,7 +179,7 @@ bool CurrentBasedCover::is_closing_blocked_() const {
|
||||||
if (this->close_obstacle_current_threshold_ == FLT_MAX) {
|
if (this->close_obstacle_current_threshold_ == FLT_MAX) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return this->open_sensor_->get_state() > this->open_obstacle_current_threshold_;
|
return this->close_sensor_->get_state() > this->close_obstacle_current_threshold_;
|
||||||
}
|
}
|
||||||
bool CurrentBasedCover::is_initial_delay_finished_() const {
|
bool CurrentBasedCover::is_initial_delay_finished_() const {
|
||||||
return millis() - this->start_dir_time_ > this->start_sensing_delay_;
|
return millis() - this->start_dir_time_ > this->start_sensing_delay_;
|
||||||
|
|
Loading…
Reference in a new issue