From 282f6e04b37a7159bd1d8a7cf4e43d6b9020eb4a Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 6 Nov 2025 17:40:53 -0600 Subject: [PATCH] dry --- esphome/components/wifi/wifi_component.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/wifi/wifi_component.cpp b/esphome/components/wifi/wifi_component.cpp index 2b085f66f7..0ac675c0a3 100644 --- a/esphome/components/wifi/wifi_component.cpp +++ b/esphome/components/wifi/wifi_component.cpp @@ -352,7 +352,7 @@ WiFiAP WiFiComponent::build_wifi_ap_from_selected_() const { WiFiAP params = this->get_sta(); // PRECONDITION: selected_sta_index_ must be valid (ensured by all callers) // If SSID is empty, it means selected_sta_index_ was invalid - this is a bug - assert(!params.get_ssid().empty() && "build_wifi_ap_from_selected_() called with invalid selected_sta_index_"); + assert(!params.get_ssid().empty()); // SYNCHRONIZATION: selected_sta_index_ and scan_result_[0] are kept in sync: // - wifi_scan_done() sorts all scan results by priority/RSSI (best first)