1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-02-14 23:18:21 +00:00

Use translation for media player source and sound mode in more info (#29135)

This commit is contained in:
Paul Bottein
2026-01-22 15:59:27 +01:00
committed by GitHub
parent 45b28d382c
commit af4d68e2b6

View File

@@ -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
)}
</ha-md-menu-item>`
)}
</ha-md-button-menu>`;
@@ -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
)}
</ha-md-menu-item>`
)}
</ha-md-button-menu>`;