diff --git a/src/more-infos/more-info-media_player.html b/src/more-infos/more-info-media_player.html index 007ae2393063..416cffd3107c 100644 --- a/src/more-infos/more-info-media_player.html +++ b/src/more-infos/more-info-media_player.html @@ -106,6 +106,19 @@ + +
+ +
= this.stateObj.attributes.sound_mode_list.length + || soundModeIndexOld === undefined + ) { + return; + } + + const soundModeInput = this.stateObj.attributes.sound_mode_list[soundModeIndex]; + + if (soundModeInput === this.stateObj.attributes.sound_mode) { + return; + } + + this.callService('select_sound_mode', { sound_mode: soundModeInput }); + } + handleVolumeTap() { if (!this.supportsVolumeMute) { return;