Skip to content

Commit e2619fb

Browse files
committed
unavailable fix
1 parent b4e5cfa commit e2619fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lg-remote-control.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class LgRemoteControl extends LitElement {
137137
: ""}
138138
<div class="grid-container-power" style="--remotewidth: ${remoteWidth}">
139139
<button class="btn-flat flat-high ripple" @click=${() => this._channelList()}><ha-icon icon="mdi:format-list-numbered"/></button>
140-
${stateObj.state === 'off' ? html`
140+
${['off', 'unavailable'].includes(stateObj.state) ? html`
141141
<button class="btn ripple" @click=${() => this._media_player_turn_on(mac)}><ha-icon icon="mdi:power" style="color: ${textColor};"/></button>
142142
` : html`
143143
<button class="btn ripple" @click=${() => this._media_player_service("POWER", "turn_off")}><ha-icon icon="mdi:power" style="color: red;"/></button>

0 commit comments

Comments
 (0)