1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-16 06:45:48 +00:00
This commit is contained in:
J. Nick Koston
2025-11-09 17:31:28 -06:00
parent 9b3b422b9e
commit 1660509285

View File

@@ -1219,12 +1219,9 @@ void WiFiComponent::retry_connect() {
this->error_from_callback_ = false;
// Execute phase-specific connection logic
if (this->state_ == WIFI_COMPONENT_STATE_STA_CONNECTING) {
yield();
this->state_ = WIFI_COMPONENT_STATE_STA_CONNECTING_2;
// Build connection params based on current phase
WiFiAP params = this->build_params_for_current_phase_();
this->start_connecting(params, true);
return;