mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Swap button positions of toggle feature (#24416)
This commit is contained in:
parent
df33e97996
commit
c80247d992
@ -53,7 +53,7 @@ class HuiToggleCardFeature extends LitElement implements LovelaceCardFeature {
|
||||
|
||||
const color = stateColorCss(this.stateObj);
|
||||
|
||||
const options = ["on", "off"].map<ControlSelectOption>((entityState) => ({
|
||||
const options = ["off", "on"].map<ControlSelectOption>((entityState) => ({
|
||||
value: entityState,
|
||||
label: this.hass!.formatEntityState(this.stateObj!, entityState),
|
||||
path: entityState === "on" ? mdiPower : mdiPowerOff,
|
||||
|
Loading…
x
Reference in New Issue
Block a user