1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-28 16:12:24 +01:00
This commit is contained in:
J. Nick Koston
2025-09-27 01:11:30 -05:00
parent 5abde23432
commit 603bde05e7

View File

@@ -223,14 +223,13 @@ void ESPHomeOTAComponent::handle_handshake_() {
// If password is set, move to auth phase // If password is set, move to auth phase
if (!this->password_.empty()) { if (!this->password_.empty()) {
this->transition_ota_state_(OTAState::AUTH_SEND); this->transition_ota_state_(OTAState::AUTH_SEND);
[[fallthrough]];
} else } else
#endif #endif
{ {
// No password, move directly to data phase // No password, move directly to data phase
this->transition_ota_state_(OTAState::DATA); this->transition_ota_state_(OTAState::DATA);
[[fallthrough]];
} }
[[fallthrough]];
} }
#ifdef USE_OTA_PASSWORD #ifdef USE_OTA_PASSWORD