mirror of
https://github.com/esphome/esphome.git
synced 2026-10-03 09:46:03 +00:00
[speaker] Fix the fall through warning in the media player turn off command (#19987)
This commit is contained in:
@@ -224,7 +224,7 @@ void SpeakerMediaPlayer::watch_media_commands_() {
|
||||
break;
|
||||
case media_player::MEDIA_PLAYER_COMMAND_TURN_OFF:
|
||||
this->is_turn_off_ = true;
|
||||
// Intentional Fall-through
|
||||
[[fallthrough]];
|
||||
#endif
|
||||
case media_player::MEDIA_PLAYER_COMMAND_STOP:
|
||||
// Pipelines do not stop immediately after calling the stop command, so confirm its stopped before unpausing.
|
||||
|
||||
Reference in New Issue
Block a user