1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-23 21:52:23 +01:00

unreachable

This commit is contained in:
J. Nick Koston
2025-07-05 15:57:21 -05:00
parent 7c2d2ef5a3
commit f85dcdca4e

View File

@@ -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;
}