Disable bluetooth proxy during update (#7695)

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
Jordan Zucker 2024-11-13 16:57:09 -08:00 committed by Jesse Hills
parent 9bc7b74d01
commit 67a4e56fcf
No known key found for this signature in database
GPG key ID: BEAAE804EFD8E83A
2 changed files with 10 additions and 0 deletions

View file

@ -65,6 +65,9 @@ void ESP32BLETracker::setup() {
[this](ota::OTAState state, float progress, uint8_t error, ota::OTAComponent *comp) { [this](ota::OTAState state, float progress, uint8_t error, ota::OTAComponent *comp) {
if (state == ota::OTA_STARTED) { if (state == ota::OTA_STARTED) {
this->stop_scan(); this->stop_scan();
for (auto *client : this->clients_) {
client->disconnect();
}
} }
}); });
#endif #endif

View file

@ -39,3 +39,10 @@ esp32_ble_tracker:
- then: - then:
- lambda: |- - lambda: |-
ESP_LOGD("ble_auto", "The scan has ended!"); ESP_LOGD("ble_auto", "The scan has ended!");
wifi:
ssid: MySSID
password: password1
ota:
- platform: esphome