1
0
mirror of https://github.com/esphome/esphome.git synced 2025-04-08 20:00:27 +01:00

Fix esp32_ble_tracker

This commit is contained in:
Keith Burzinski 2024-04-21 04:25:17 -05:00
parent 8426084ebf
commit 17f9774418
No known key found for this signature in database
GPG Key ID: 802564C5F0EEFFBE

View File

@ -58,9 +58,8 @@ void ESP32BLETracker::setup() {
this->scanner_idle_ = true; this->scanner_idle_ = true;
#ifdef USE_OTA #ifdef USE_OTA
ota_esphome::global_ota_component->add_on_state_callback( esphome::global_ota_component->add_on_state_callback([this](ota::OTAState state, float progress, uint8_t error) {
[this](ota_esphome::OTAESPHomeState state, float progress, uint8_t error) { if (state == ota::OTA_STARTED) {
if (state == ota_esphome::OTA_STARTED) {
this->stop_scan(); this->stop_scan();
} }
}); });