mirror of
https://github.com/esphome/esphome.git
synced 2024-12-12 08:24:55 +01:00
Disable bluetooth proxy during update (#7695)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
parent
d015088855
commit
5e62c489b0
2 changed files with 10 additions and 0 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue