From a295cc017f8255c3df9e3e44a2730c98d39041a6 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 9 Nov 2025 09:29:55 -0600 Subject: [PATCH] wip --- esphome/components/wifi/wifi_component.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/esphome/components/wifi/wifi_component.cpp b/esphome/components/wifi/wifi_component.cpp index aef79c83f6..2f28d88e68 100644 --- a/esphome/components/wifi/wifi_component.cpp +++ b/esphome/components/wifi/wifi_component.cpp @@ -970,10 +970,8 @@ void WiFiComponent::retry_connect() { this->selected_sta_index_ = 0; this->set_scan_result_index_and_reset_retries_(0); this->retry_hidden_ = false; - // Skip the single connection point below - need to scan first - // State will transition to COOLDOWN, then SCANNING will be triggered automatically - this->state_ = WIFI_COMPONENT_STATE_COOLDOWN; - this->action_started_ = millis(); + // Start scanning immediately - no need to wait since we're just switching modes + this->start_scanning(); return; } else { // Try next configured network