diff --git a/src/components/player-controls.ts b/src/components/player-controls.ts
index 4a4fb9ae..b4df513a 100755
--- a/src/components/player-controls.ts
+++ b/src/components/player-controls.ts
@@ -35,7 +35,7 @@ class PlayerControls extends LitElement {
`,
@@ -51,7 +51,7 @@ class PlayerControls extends LitElement {
const sensors = await this.store.hassService.getRelatedEntities(this.activePlayer, 'sensor');
const audioInputFormat = sensors.find((sensor) => sensor.entity_id.includes('audio_input_format'));
return audioInputFormat && audioInputFormat.state && audioInputFormat.state !== 'No audio'
- ? audioInputFormat.state
+ ? html`${audioInputFormat.state}
`
: '';
}
static get styles() {
@@ -81,10 +81,6 @@ class PlayerControls extends LitElement {
position: relative;
}
.audio-input-format > div {
- display: none;
- }
- .audio-input-format > div[show] {
- display: block;
color: var(--card-background-color);
background: var(--disabled-text-color);
text-overflow: ellipsis;