1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-15 14:25:45 +00:00
This commit is contained in:
J. Nick Koston
2025-11-09 15:55:39 -06:00
parent f8c5c26958
commit a27af820ea

View File

@@ -709,10 +709,6 @@ void WiFiComponent::start_scanning() {
// Priority is decreased when a BSSID fails to connect, so lower priority = previously failed
if (a.get_priority() != b.get_priority())
return a.get_priority() > b.get_priority();
// If priorities are equal, prefer stronger signal
// This helps with mesh networks and multiple APs with same SSID
return a.get_rssi() > b.get_rssi();
}
// Both don't match - sort by signal strength