From db9af4a8623e3b5db8fb9bab8f60c970020c98a8 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 11 Nov 2025 14:00:25 -0600 Subject: [PATCH] cleanup --- esphome/components/wifi/wifi_component.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/esphome/components/wifi/wifi_component.cpp b/esphome/components/wifi/wifi_component.cpp index 3b68d299b0e..e6560e86708 100644 --- a/esphome/components/wifi/wifi_component.cpp +++ b/esphome/components/wifi/wifi_component.cpp @@ -441,9 +441,6 @@ void WiFiComponent::loop() { // a failure, or something tried to connect over and over // so we entered cooldown. In both cases we call // check_connecting_finished to continue the state machine. - // If we just restarted the adapter because we failed to connect, - // this->error_from_callback_ will be true and we will move to the - // next retry phase. this->check_connecting_finished(); } break; @@ -1455,6 +1452,7 @@ void WiFiComponent::retry_connect() { this->start_connecting(params, true); return; } + // No valid target - fall through to set state to allow phase transition } ESP_LOGD(TAG, "Entering cooldown from state %d and phase %s", this->state_,