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:
Tobias Marschall 2024-06-22 19:38:18 +00:00
parent 1e05bcaa61
commit 79667d3c8c

View file

@ -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)) {