We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4e5cfa commit e2619fbCopy full SHA for e2619fb
1 file changed
src/lg-remote-control.ts
@@ -137,7 +137,7 @@ class LgRemoteControl extends LitElement {
137
: ""}
138
<div class="grid-container-power" style="--remotewidth: ${remoteWidth}">
139
<button class="btn-flat flat-high ripple" @click=${() => this._channelList()}><ha-icon icon="mdi:format-list-numbered"/></button>
140
- ${stateObj.state === 'off' ? html`
+ ${['off', 'unavailable'].includes(stateObj.state) ? html`
141
<button class="btn ripple" @click=${() => this._media_player_turn_on(mac)}><ha-icon icon="mdi:power" style="color: ${textColor};"/></button>
142
` : html`
143
<button class="btn ripple" @click=${() => this._media_player_service("POWER", "turn_off")}><ha-icon icon="mdi:power" style="color: red;"/></button>
0 commit comments