mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 13:34:54 +01:00
fix for ESP32 'Association Leave' (#1081)
This commit is contained in:
parent
d000440927
commit
3fd130869e
1 changed files with 1 additions and 0 deletions
|
@ -98,6 +98,7 @@ void WiFiComponent::loop() {
|
|||
case WIFI_COMPONENT_STATE_STA_CONNECTED: {
|
||||
if (!this->is_connected()) {
|
||||
ESP_LOGW(TAG, "WiFi Connection lost... Reconnecting...");
|
||||
this->state_ = WIFI_COMPONENT_STATE_STA_CONNECTING;
|
||||
this->retry_connect();
|
||||
} else {
|
||||
this->status_clear_warning();
|
||||
|
|
Loading…
Reference in a new issue