From 399dc262360172c8cf101100c2c65ca1f17769a8 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 9 Aug 2026 02:17:36 -0500 Subject: [PATCH] Follow the contract op rename --- esphome/components/ble_client/ble_client_gatt.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/esphome/components/ble_client/ble_client_gatt.cpp b/esphome/components/ble_client/ble_client_gatt.cpp index 0f72da12c9..49375bbc9d 100644 --- a/esphome/components/ble_client/ble_client_gatt.cpp +++ b/esphome/components/ble_client/ble_client_gatt.cpp @@ -74,7 +74,7 @@ void BLEClient::disconnect() { return; // A deliberate teardown's failure report must not feed the backoff. this->cancel_requested_ = true; - this->backend_->disconnect(); + this->backend_->gatt_disconnect(); } void BLEClient::register_failure_() { @@ -91,7 +91,7 @@ void BLEClient::on_connection_state(bool connected, uint16_t mtu, int error) { this->state_ = State::DISCOVERING; if (this->backend_->discover_services() != 0) { // Synchronous refusal: no discovery completion will follow. - this->backend_->disconnect(); + this->backend_->gatt_disconnect(); } return; } @@ -121,7 +121,7 @@ void BLEClient::on_service_discovery_done(int error) { if (error != 0) { ESP_LOGW(TAG, "[%s] Service discovery failed, status=%d", this->address_str_, error); this->register_failure_(); - this->backend_->disconnect(); + this->backend_->gatt_disconnect(); return; } auto table = this->backend_->get_service_table();