From f395e29c59d966d47dfb4de0dcc39c4880a3de2f Mon Sep 17 00:00:00 2001 From: Kevin Ahrendt Date: Fri, 24 Apr 2026 08:44:41 -0400 Subject: [PATCH] publish immediately on resume --- esphome/components/sendspin/sensor/sendspin_sensor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/esphome/components/sendspin/sensor/sendspin_sensor.cpp b/esphome/components/sendspin/sensor/sendspin_sensor.cpp index 5d0ab21340..4f201f95ef 100644 --- a/esphome/components/sendspin/sensor/sendspin_sensor.cpp +++ b/esphome/components/sendspin/sensor/sendspin_sensor.cpp @@ -25,6 +25,9 @@ void SendspinTrackProgressSensor::setup() { this->stop_poller(); this->publish_state(progress.track_progress); } else { + // Resumed: publish the fresh interpolated position immediately so the frontend doesn't show a stale + // paused value until the next poll tick. + this->publish_state(this->parent_->get_track_progress_ms()); this->start_poller(); } });