mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 00:18:11 +01:00
fix: arduino media player still sets wrong state. (#6875)
This commit is contained in:
parent
38b7bed2fa
commit
618102fe8c
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ void I2SAudioMediaPlayer::control(const media_player::MediaPlayerCall &call) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this->state == media_player::MEDIA_PLAYER_STATE_ANNOUNCING) {
|
if (play_state == media_player::MEDIA_PLAYER_STATE_ANNOUNCING) {
|
||||||
this->is_announcement_ = true;
|
this->is_announcement_ = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue