From efe6e5840486acb937c818d7e1c3dff0d46ceae0 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 11 Nov 2025 16:15:12 -0600 Subject: [PATCH] clear failure on restart --- esphome/components/wifi/wifi_component.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/esphome/components/wifi/wifi_component.cpp b/esphome/components/wifi/wifi_component.cpp index c30692bb9b..afb69454e5 100644 --- a/esphome/components/wifi/wifi_component.cpp +++ b/esphome/components/wifi/wifi_component.cpp @@ -421,6 +421,7 @@ void WiFiComponent::restart_adapter() { // Don't set retry_phase_ or num_retried_ here - state machine handles transitions this->state_ = WIFI_COMPONENT_STATE_COOLDOWN; this->action_started_ = millis(); + this->error_from_callback_ = false; } void WiFiComponent::loop() {