From 8d7090fcd6e0f0bcaa473497275583088a283bb8 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 17 Nov 2025 23:11:55 -0600 Subject: [PATCH] fix thread safety issue --- esphome/components/wifi/wifi_component.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/wifi/wifi_component.cpp b/esphome/components/wifi/wifi_component.cpp index f9043058fd..981aa0b74f 100644 --- a/esphome/components/wifi/wifi_component.cpp +++ b/esphome/components/wifi/wifi_component.cpp @@ -202,8 +202,8 @@ static constexpr uint8_t WIFI_RETRY_COUNT_PER_AP = 1; static constexpr uint32_t WIFI_COOLDOWN_DURATION_MS = 500; /// Cooldown duration when fallback AP is active and captive portal may be running -/// Longer interval prevents scanning from disrupting AP connections and blocking captive portal -static constexpr uint32_t WIFI_COOLDOWN_WITH_AP_ACTIVE_MS = 30000; +/// Longer interval gives users time to configure WiFi without constant connection attempts +static constexpr uint32_t WIFI_COOLDOWN_WITH_AP_ACTIVE_MS = 5000; static constexpr uint8_t get_max_retries_for_phase(WiFiRetryPhase phase) { switch (phase) {