1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-18 15:55:46 +00:00

Merge branch 'captive_fix' into integration

This commit is contained in:
J. Nick Koston
2025-11-18 09:28:18 -06:00

View File

@@ -504,6 +504,7 @@ void WiFiComponent::loop() {
#ifdef USE_IMPROV
if (esp32_improv::global_improv_component != nullptr && !esp32_improv::global_improv_component->is_active()) {
if (now - this->last_connected_ > esp32_improv::global_improv_component->get_wifi_timeout()) {
ESP_LOGI(TAG, "Starting Improv");
if (this->wifi_mode_(true, {}))
esp32_improv::global_improv_component->start();
}