mirror of
https://github.com/esphome/esphome.git
synced 2026-09-17 18:18:43 +00:00
Fix optional-value-conversion in speaker_media_player
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
e2290367ab
commit
9c69a357f8
@@ -134,7 +134,7 @@ void SpeakerMediaPlayer::watch_media_commands_() {
|
||||
delete media_command.url.value();
|
||||
}
|
||||
if (media_command.file.has_value()) {
|
||||
playlist_item.file = *media_command.file;
|
||||
playlist_item.file = media_command.file;
|
||||
}
|
||||
|
||||
if (this->single_pipeline_() || (media_command.announce.has_value() && media_command.announce.value())) {
|
||||
|
||||
Reference in New Issue
Block a user