1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-13 05:15:45 +00:00
This commit is contained in:
J. Nick Koston
2025-11-11 16:19:47 -06:00
parent efe6e58404
commit f0a9ee871b

View File

@@ -464,6 +464,7 @@ void WiFiComponent::loop() {
case WIFI_COMPONENT_STATE_STA_CONNECTED: {
if (!this->is_connected()) {
ESP_LOGW(TAG, "Connection lost; reconnecting");
this->state_ = WIFI_COMPONENT_STATE_STA_CONNECTING;
this->retry_connect();
} else {
this->status_clear_warning();