1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-18 07:45:56 +00:00

not hidden if found

This commit is contained in:
J. Nick Koston
2025-11-06 16:23:56 -06:00
parent cde767d83d
commit a0b273c6f3

View File

@@ -384,6 +384,7 @@ WiFiAP WiFiComponent::build_selected_ap_() const {
const WiFiScanResult &scan = this->scan_result_[0];
// If we have scan data, the network is visible (not hidden) - use it regardless of config
// Hidden networks don't appear in scan results, so presence of scan data is ground truth
params.set_hidden(false);
params.set_ssid(scan.get_ssid());
params.set_bssid(scan.get_bssid());
params.set_channel(scan.get_channel());