diff --git a/esphome/components/ota/ota_backend.h b/esphome/components/ota/ota_backend.h index c00ecba9e68..e03afd4fc6f 100644 --- a/esphome/components/ota/ota_backend.h +++ b/esphome/components/ota/ota_backend.h @@ -67,6 +67,7 @@ class OTABackend { */ class OTAStateListener { public: + virtual ~OTAStateListener() = default; virtual void on_ota_state(OTAState state, float progress, uint8_t error) = 0; }; @@ -99,6 +100,7 @@ class OTAComponent : public Component { */ class OTAGlobalStateListener { public: + virtual ~OTAGlobalStateListener() = default; virtual void on_ota_global_state(OTAState state, float progress, uint8_t error, OTAComponent *component) = 0; };