diff --git a/esphome/components/sendspin/sendspin_hub.cpp b/esphome/components/sendspin/sendspin_hub.cpp index c2fcd520ba2..d27c5672eb6 100644 --- a/esphome/components/sendspin/sendspin_hub.cpp +++ b/esphome/components/sendspin/sendspin_hub.cpp @@ -179,7 +179,7 @@ void SendspinHub::on_metadata(const sendspin::ServerMetadataStateObject &metadat } // THREAD CONTEXT: Main loop (invoked from Sendspin components) -uint32_t SendspinHub::get_track_progress_ms() { +uint32_t SendspinHub::get_track_progress_ms() const { if (this->is_ready()) { return this->metadata_role_->get_track_progress_ms(); } diff --git a/esphome/components/sendspin/sendspin_hub.h b/esphome/components/sendspin/sendspin_hub.h index 79b7018645d..42c4425d626 100644 --- a/esphome/components/sendspin/sendspin_hub.h +++ b/esphome/components/sendspin/sendspin_hub.h @@ -134,7 +134,7 @@ class SendspinHub final : public Component, } /// @brief Returns the interpolated track progress in milliseconds, or 0 if the hub is not yet ready. - uint32_t get_track_progress_ms(); + uint32_t get_track_progress_ms() const; #endif #ifdef USE_SENDSPIN_PLAYER