mirror of
https://github.com/esphome/esphome.git
synced 2025-08-06 18:37:47 +00:00
unreachable
This commit is contained in:
parent
7c2d2ef5a3
commit
f85dcdca4e
@ -75,11 +75,6 @@ bool DeepSleepComponent::prepare_to_sleep_() {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
// If we were monitoring and now can sleep, clean up
|
||||
if (this->sleep_state_ == SLEEP_STATE_BLOCKED_BY_WAKEUP_PIN) {
|
||||
this->cancel_interval("wakeup_pin_check");
|
||||
this->sleep_state_ = SLEEP_STATE_ENTERING_SLEEP;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user