Swap button positions of toggle feature (#24416)

This commit is contained in:
Jan-Philipp Benecke 2025-02-27 10:46:29 +01:00 committed by Bram Kragten
parent df33e97996
commit c80247d992

View File

@ -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,