diff --git a/esphome/components/wifi/wifi_component.cpp b/esphome/components/wifi/wifi_component.cpp index 2bd86949e3..a6f44ac758 100644 --- a/esphome/components/wifi/wifi_component.cpp +++ b/esphome/components/wifi/wifi_component.cpp @@ -813,7 +813,7 @@ void WiFiComponent::retry_connect() { #ifdef USE_WIFI_FAST_CONNECT if (this->sta_.empty()) { // No configured networks - shouldn't happen in fast_connect mode, but handle defensively - ESP_LOGW(TAG, "No configured networks available"); + ESP_LOGW(TAG, "No configured networks"); this->restart_adapter(); } else if (this->trying_loaded_ap_) { this->trying_loaded_ap_ = false; @@ -896,7 +896,7 @@ bool WiFiComponent::load_fast_connect_settings_() { if (this->fast_connect_pref_.load(&fast_connect_save)) { // Validate saved AP index if (fast_connect_save.ap_index < 0 || static_cast(fast_connect_save.ap_index) >= this->sta_.size()) { - ESP_LOGW(TAG, "Saved AP index out of bounds"); + ESP_LOGW(TAG, "AP index out of bounds"); return false; } diff --git a/esphome/components/wifi/wifi_component.h b/esphome/components/wifi/wifi_component.h index defce1d0ac..3dc31880a8 100644 --- a/esphome/components/wifi/wifi_component.h +++ b/esphome/components/wifi/wifi_component.h @@ -376,7 +376,7 @@ class WiFiComponent : public Component { for (size_t i = 0; i < this->sta_.size(); i++) { if (scan_res.matches(this->sta_[i])) { if (i > std::numeric_limits::max()) { - ESP_LOGE(TAG, "Matched AP index %zu exceeds int8_t range", i); + ESP_LOGE(TAG, "AP index %zu too large", i); continue; } this->selected_sta_index_ = static_cast(i); // Links scan_result_[0] with sta_[i]