mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 02:36:37 +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(
|
||||
"media_player",
|
||||
stateObj.state === "off" || stateObj.state === "idle"
|
||||
? "turn_on"
|
||||
: "turn_off",
|
||||
stateObj.state === "off" ? "turn_on" : "turn_off",
|
||||
{
|
||||
entity_id: this._config!.entity,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user