From 52eeb52d0e5e6af32183f89dd744445c5f43561a Mon Sep 17 00:00:00 2001 From: Kevin Ahrendt Date: Fri, 24 Apr 2026 08:43:06 -0400 Subject: [PATCH] mark get_track_progress_ms as const --- esphome/components/sendspin/sendspin_hub.cpp | 2 +- esphome/components/sendspin/sendspin_hub.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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