Update esphome/components/esp32_ble_tracker/esp32_ble_tracker.cpp

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
J. Nick Koston
2026-03-31 11:09:34 -10:00
committed by GitHub
co-authored by Copilot
parent dc9718b167
commit 217808b0fc
@@ -99,7 +99,8 @@ void ESP32BLETracker::on_ota_global_state(ota::OTAState state, float progress, u
if (this->scan_continuous_before_ota_) {
this->scan_continuous_before_ota_ = false;
this->scan_continuous_ = true;
this->start_scan();
// Do not restart scanning immediately here; allow loop() to
// safely restart scanning once the scanner and all clients are idle.
}
}
}