mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-29 07:47:19 +00:00
Fix scenes activate button being disabled (#11145)
This commit is contained in:
parent
27fa34e24e
commit
3e22270c2c
@ -9,7 +9,7 @@ import {
|
|||||||
} from "lit";
|
} from "lit";
|
||||||
import { customElement, property, state } from "lit/decorators";
|
import { customElement, property, state } from "lit/decorators";
|
||||||
import "../../../components/entity/ha-entity-toggle";
|
import "../../../components/entity/ha-entity-toggle";
|
||||||
import { UNAVAILABLE_STATES } from "../../../data/entity";
|
import { UNAVAILABLE } from "../../../data/entity";
|
||||||
import { activateScene } from "../../../data/scene";
|
import { activateScene } from "../../../data/scene";
|
||||||
import { HomeAssistant } from "../../../types";
|
import { HomeAssistant } from "../../../types";
|
||||||
import { hasConfigOrEntityChanged } from "../common/has-changed";
|
import { hasConfigOrEntityChanged } from "../common/has-changed";
|
||||||
@ -53,7 +53,7 @@ class HuiSceneEntityRow extends LitElement implements LovelaceRow {
|
|||||||
<hui-generic-entity-row .hass=${this.hass} .config=${this._config}>
|
<hui-generic-entity-row .hass=${this.hass} .config=${this._config}>
|
||||||
<mwc-button
|
<mwc-button
|
||||||
@click=${this._callService}
|
@click=${this._callService}
|
||||||
.disabled=${UNAVAILABLE_STATES.includes(stateObj.state)}
|
.disabled=${stateObj.state === UNAVAILABLE}
|
||||||
class="text-content"
|
class="text-content"
|
||||||
>
|
>
|
||||||
${this._config.action_name ||
|
${this._config.action_name ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user