1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-29 22:24:26 +00:00

fix wifi info (#709)

* fix wifi info

* lint time based cover
This commit is contained in:
Guillermo Ruffino
2019-08-29 21:34:29 -03:00
committed by GitHub
parent f9b3e61c0f
commit 9b28c732c6
3 changed files with 10 additions and 6 deletions

View File

@@ -31,7 +31,8 @@ void TimeBasedCover::loop() {
this->recompute_position_();
if (this->is_at_target_()) {
if (this->has_built_in_endstop_ && (this->target_position_ == COVER_OPEN || this->target_position_ == COVER_CLOSED)) {
if (this->has_built_in_endstop_ &&
(this->target_position_ == COVER_OPEN || this->target_position_ == COVER_CLOSED)) {
// Don't trigger stop, let the cover stop by itself.
this->current_operation = COVER_OPERATION_IDLE;
} else {