mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 03:06:41 +00:00
Allow "idle" media players to be switched of in entity row (#8155)
This commit is contained in:
parent
1aab656705
commit
b565a8b8f7
@ -249,9 +249,7 @@ class HuiMediaPlayerEntityRow extends LitElement implements LovelaceRow {
|
|||||||
|
|
||||||
this.hass!.callService(
|
this.hass!.callService(
|
||||||
"media_player",
|
"media_player",
|
||||||
stateObj.state === "off" || stateObj.state === "idle"
|
stateObj.state === "off" ? "turn_on" : "turn_off",
|
||||||
? "turn_on"
|
|
||||||
: "turn_off",
|
|
||||||
{
|
{
|
||||||
entity_id: this._config!.entity,
|
entity_id: this._config!.entity,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user