diff --git a/components/esp32_presense/esp32_presense.h b/components/esp32_presense/esp32_presense.h index 2a49599..f22e343 100644 --- a/components/esp32_presense/esp32_presense.h +++ b/components/esp32_presense/esp32_presense.h @@ -9,7 +9,8 @@ namespace esphome { namespace esp32_presense { - class ESP32Presense : + class ESP32Presense : + public Component, public mqtt::CustomMQTTDevice // public nimble_distance_custom::NimbleDistanceCustomComponent { @@ -26,8 +27,8 @@ namespace esphome unsigned int count ); public: - void setup(); - void loop(); + void setup() override; + void loop() override; void reportLoop(); // void on_result(nimble_distance_custom::NimbleDistanceCustomResult&) override; void set_room(std::string room) { room_ = room; }