mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 15:38:11 +01:00
Remove code that got introduced by https://github.com/esphome/esphome/pull/665 but actually has nothing to do with "has_built_in_endstop" and got added a second time as a duplicate with the "manual_control" configuration in https://github.com/esphome/esphome/pull/4249.
This commit is contained in:
parent
1e05bcaa61
commit
79667d3c8c
1 changed files with 0 additions and 6 deletions
|
@ -88,12 +88,6 @@ void TimeBasedCover::control(const CoverCall &call) {
|
|||
this->target_position_ = pos;
|
||||
this->start_direction_(op);
|
||||
}
|
||||
// for covers with built in end stop, we should send the command again
|
||||
if (this->has_built_in_endstop_ && (pos == COVER_OPEN || pos == COVER_CLOSED)) {
|
||||
auto op = pos == COVER_CLOSED ? COVER_OPERATION_CLOSING : COVER_OPERATION_OPENING;
|
||||
this->target_position_ = pos;
|
||||
this->start_direction_(op);
|
||||
}
|
||||
} else {
|
||||
auto op = pos < this->position ? COVER_OPERATION_CLOSING : COVER_OPERATION_OPENING;
|
||||
if (this->manual_control_ && (pos == COVER_OPEN || pos == COVER_CLOSED)) {
|
||||
|
|
Loading…
Reference in a new issue