From 318163492d3c0985c9f87ee36db5f49cdd39658d Mon Sep 17 00:00:00 2001 From: myhomeiot Date: Thu, 21 Nov 2024 17:54:40 +0200 Subject: [PATCH] BLE Host: Added support for ESPHome 2024.11.x and older --- components/myhomeiot_ble_host/myhomeiot_ble_host.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/myhomeiot_ble_host/myhomeiot_ble_host.h b/components/myhomeiot_ble_host/myhomeiot_ble_host.h index 2f0d129..8471241 100644 --- a/components/myhomeiot_ble_host/myhomeiot_ble_host.h +++ b/components/myhomeiot_ble_host/myhomeiot_ble_host.h @@ -51,6 +51,9 @@ class MyHomeIOT_BLEHost : public Component, public esp32_ble_tracker::ESPBTClien void dump_config() override; void loop() override; void connect() override {} +#if ESPHOME_VERSION_CODE >= VERSION_CODE(2024, 11, 0) + void disconnect() override {} +#endif void register_ble_client(MyHomeIOT_BLEClientNode *client) { client->set_ble_host(this);