From 3502ac7bee53e766972ee755f1ffd65e04415bf5 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 5 Jan 2026 22:33:14 -1000 Subject: [PATCH] tweak --- esphome/components/wifi/wifi_component.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/esphome/components/wifi/wifi_component.cpp b/esphome/components/wifi/wifi_component.cpp index 8e4742ff5a..84c20cd2b8 100644 --- a/esphome/components/wifi/wifi_component.cpp +++ b/esphome/components/wifi/wifi_component.cpp @@ -895,9 +895,6 @@ const LogString *get_signal_bars(int8_t rssi) { } void WiFiComponent::print_connect_params_() { - if (this->is_disabled() || !this->is_connected()) { - return; - } bssid_t bssid = wifi_bssid(); char bssid_s[18]; format_mac_addr_upper(bssid.data(), bssid_s); @@ -1180,8 +1177,11 @@ void WiFiComponent::dump_config() { get_mac_address_pretty_into_buffer(mac_s), YESNO(this->is_connected())); if (this->is_disabled()) { ESP_LOGCONFIG(TAG, " Disabled"); + return; + } + if (this->is_connected()) { + this->print_connect_params_(); } - this->print_connect_params_(); } void WiFiComponent::check_connecting_finished() {