From af4d68e2b6de1eb612a4635d61e98f5f302f7e25 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Thu, 22 Jan 2026 15:59:27 +0100 Subject: [PATCH] Use translation for media player source and sound mode in more info (#29135) --- .../more-info/controls/more-info-media_player.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/dialogs/more-info/controls/more-info-media_player.ts b/src/dialogs/more-info/controls/more-info-media_player.ts index d79b058701..85e5a79c4f 100644 --- a/src/dialogs/more-info/controls/more-info-media_player.ts +++ b/src/dialogs/more-info/controls/more-info-media_player.ts @@ -216,7 +216,11 @@ class MoreInfoMediaPlayer extends LitElement { @keydown=${this._handleSourceClick} .selected=${source === this.stateObj?.attributes.source} > - ${source} + ${this.hass.formatEntityAttributeValue( + this.stateObj!, + "source", + source + )} ` )} `; @@ -249,7 +253,11 @@ class MoreInfoMediaPlayer extends LitElement { @keydown=${this._handleSoundModeClick} .selected=${soundMode === this.stateObj?.attributes.sound_mode} > - ${soundMode} + ${this.hass.formatEntityAttributeValue( + this.stateObj!, + "sound_mode", + soundMode + )} ` )} `;