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:
@@ -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>`;
|
||||
|
||||
Reference in New Issue
Block a user