Skip to content

Commit

Permalink
BLE Host: Added support for ESPHome 2024.11.x and older
Browse files Browse the repository at this point in the history
  • Loading branch information
myhomeiot committed Nov 21, 2024
1 parent d08f522 commit 3181634
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/myhomeiot_ble_host/myhomeiot_ble_host.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3181634

Please sign in to comment.