From 7b05ad690b697e35d32a51a356cc01069ab7fac2 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 5 Mar 2026 07:33:29 -1000 Subject: [PATCH] Update esphome/components/wifi/wifi_component.cpp Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com> --- esphome/components/wifi/wifi_component.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/esphome/components/wifi/wifi_component.cpp b/esphome/components/wifi/wifi_component.cpp index eab1652082..094aaf70e3 100644 --- a/esphome/components/wifi/wifi_component.cpp +++ b/esphome/components/wifi/wifi_component.cpp @@ -2129,10 +2129,7 @@ bool WiFiComponent::is_connected_() const { this->wifi_sta_connect_status_() == WiFiSTAConnectStatus::CONNECTED && !this->error_from_callback_; } void WiFiComponent::update_connected_state_() { - bool connected = this->is_connected_(); - if (connected != this->connected_) { - this->connected_ = connected; - } + this->connected_ = this->is_connected_(); } void WiFiComponent::set_power_save_mode(WiFiPowerSaveMode power_save) { this->power_save_ = power_save;