From 37279cb2249e5d682a45e70ac70b47e277294b10 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 9 Nov 2025 17:12:18 -0600 Subject: [PATCH] fixes --- esphome/components/wifi/wifi_component.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/esphome/components/wifi/wifi_component.cpp b/esphome/components/wifi/wifi_component.cpp index 5f7cfa58ee..c15beaa185 100644 --- a/esphome/components/wifi/wifi_component.cpp +++ b/esphome/components/wifi/wifi_component.cpp @@ -835,8 +835,7 @@ void WiFiComponent::check_scanning_finished() { // Don't call retry_connect() since we never attempted a connection (no BSSID to penalize) this->transition_to_phase_(WiFiRetryPhase::SCAN_WITH_HIDDEN); // Now start connection attempt in hidden mode - } - elif (this->transition_to_phase_(WiFiRetryPhase::SCAN_CONNECTING)) { + } else if (this->transition_to_phase_(WiFiRetryPhase::SCAN_CONNECTING)) { return; // scan started, wait for next loop iteration }