From 936a6cb71e501acafd392fbd0d531a16ff08c2f0 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 6 Nov 2025 16:31:00 -0600 Subject: [PATCH] reduce complexity --- 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 b30b477e5e..a0293cdaa3 100644 --- a/esphome/components/wifi/wifi_component.cpp +++ b/esphome/components/wifi/wifi_component.cpp @@ -365,9 +365,8 @@ void WiFiComponent::start_connecting_to_selected_(bool two) { // - Sets selected_sta_index_ = i to record that matching config // Therefore scan_result_[0] is guaranteed to match sta_[selected_sta_index_] if (!this->scan_result_.empty()) { - // Use scan data - proves network is visible (not hidden) + // Use scan data - network is visible (hidden defaults to false) const WiFiScanResult &scan = this->scan_result_[0]; - params.set_hidden(false); params.set_ssid(scan.get_ssid()); params.set_bssid(scan.get_bssid()); params.set_channel(scan.get_channel());