From b565a8b8f7070be6ac32c303805b28e512155dc2 Mon Sep 17 00:00:00 2001 From: Philip Allgaier Date: Thu, 14 Jan 2021 11:35:31 +0100 Subject: [PATCH] Allow "idle" media players to be switched of in entity row (#8155) --- .../lovelace/entity-rows/hui-media-player-entity-row.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/panels/lovelace/entity-rows/hui-media-player-entity-row.ts b/src/panels/lovelace/entity-rows/hui-media-player-entity-row.ts index 5a12cde981..03a79c8bd5 100644 --- a/src/panels/lovelace/entity-rows/hui-media-player-entity-row.ts +++ b/src/panels/lovelace/entity-rows/hui-media-player-entity-row.ts @@ -249,9 +249,7 @@ class HuiMediaPlayerEntityRow extends LitElement implements LovelaceRow { this.hass!.callService( "media_player", - stateObj.state === "off" || stateObj.state === "idle" - ? "turn_on" - : "turn_off", + stateObj.state === "off" ? "turn_on" : "turn_off", { entity_id: this._config!.entity, }