From 4439b45fba239f37aa99035e3fa7e72239fe78e8 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 6 Nov 2025 13:52:32 -0600 Subject: [PATCH] cleanup --- esphome/components/wifi/wifi_component.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/esphome/components/wifi/wifi_component.h b/esphome/components/wifi/wifi_component.h index 739585c6fc..284c2eb12f 100644 --- a/esphome/components/wifi/wifi_component.h +++ b/esphome/components/wifi/wifi_component.h @@ -385,12 +385,14 @@ class WiFiComponent : public Component { this->start_connecting(connection_params, two); } +#ifdef USE_WIFI_FAST_CONNECT // Reset state for next fast connect AP attempt // Clears old scan data so the new AP is tried with config only (SSID without specific BSSID/channel) void reset_for_next_ap_attempt_() { this->num_retried_ = 0; this->scan_result_.clear(); } +#endif void wifi_loop_(); bool wifi_mode_(optional sta, optional ap);