From 4174b100aa4724ca1d5b701e78ad4fdab4253132 Mon Sep 17 00:00:00 2001 From: Mischa Siekmann Date: Wed, 3 Jul 2024 12:39:04 +0200 Subject: [PATCH] MP-fix: missing current_track reset on track finish. --- .../components/adf_pipeline/media_player/adf_media_player.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/esphome/components/adf_pipeline/media_player/adf_media_player.cpp b/esphome/components/adf_pipeline/media_player/adf_media_player.cpp index 3a00c28..c52a4e9 100644 --- a/esphome/components/adf_pipeline/media_player/adf_media_player.cpp +++ b/esphome/components/adf_pipeline/media_player/adf_media_player.cpp @@ -228,6 +228,7 @@ void ADFMediaPlayer::on_pipeline_state_change(PipelineState state) { } } else if (set_new_state(media_player::MEDIA_PLAYER_STATE_IDLE) ){ publish_state(); + this->current_track_.reset(); } break;