mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 07:16:39 +00:00
🐛 fix editor switches (#4584)
This commit is contained in:
parent
8641a701cb
commit
23865c31e6
@ -42,7 +42,7 @@ export class HaDeviceEntitiesCard extends LitElement {
|
||||
<ha-card>
|
||||
<paper-item>
|
||||
<ha-switch
|
||||
?checked=${this._showDisabled}
|
||||
.checked=${this._showDisabled}
|
||||
@change=${this._showDisabledChanged}
|
||||
>${this.hass.localize(
|
||||
"ui.panel.config.entities.picker.filter.show_disabled"
|
||||
|
@ -47,7 +47,7 @@ class HuiEntitiesToggle extends LitElement {
|
||||
aria-label=${this.hass!.localize(
|
||||
"ui.panel.lovelace.card.entities.toggle"
|
||||
)}
|
||||
?checked="${this._toggleEntities!.some((entityId) => {
|
||||
.checked="${this._toggleEntities!.some((entityId) => {
|
||||
const stateObj = this.hass!.states[entityId];
|
||||
return stateObj && stateObj.state === "on";
|
||||
})}"
|
||||
|
@ -91,7 +91,7 @@ export class HuiEntitiesCardEditor extends LitElement
|
||||
@theme-changed="${this._valueChanged}"
|
||||
></hui-theme-select-editor>
|
||||
<ha-switch
|
||||
?checked="${this._config!.show_header_toggle !== false}"
|
||||
.checked="${this._config!.show_header_toggle !== false}"
|
||||
.configValue="${"show_header_toggle"}"
|
||||
@change="${this._valueChanged}"
|
||||
>${this.hass.localize(
|
||||
|
@ -140,7 +140,7 @@ export class HuiEntityButtonCardEditor extends LitElement
|
||||
</div>
|
||||
<div class="side-by-side">
|
||||
<ha-switch
|
||||
?checked="${this._config!.show_name !== false}"
|
||||
.checked="${this._config!.show_name !== false}"
|
||||
.configValue="${"show_name"}"
|
||||
@change="${this._valueChanged}"
|
||||
>${this.hass.localize(
|
||||
@ -148,7 +148,7 @@ export class HuiEntityButtonCardEditor extends LitElement
|
||||
)}</ha-switch
|
||||
>
|
||||
<ha-switch
|
||||
?checked="${this._config!.show_icon !== false}"
|
||||
.checked="${this._config!.show_icon !== false}"
|
||||
.configValue="${"show_icon"}"
|
||||
@change="${this._valueChanged}"
|
||||
>${this.hass.localize(
|
||||
|
@ -149,7 +149,7 @@ export class HuiGaugeCardEditor extends LitElement
|
||||
></paper-input>
|
||||
</div>
|
||||
<ha-switch
|
||||
?checked="${this._useSeverity !== false}"
|
||||
.checked="${this._useSeverity !== false}"
|
||||
@change="${this._toggleSeverity}"
|
||||
>${this.hass.localize(
|
||||
"ui.panel.lovelace.editor.card.gauge.severity.define"
|
||||
|
@ -118,7 +118,7 @@ export class HuiGlanceCardEditor extends LitElement
|
||||
</div>
|
||||
<div class="side-by-side">
|
||||
<ha-switch
|
||||
?checked="${this._show_name !== false}"
|
||||
.checked=${this._config!.show_name !== false}
|
||||
.configValue="${"show_name"}"
|
||||
@change="${this._valueChanged}"
|
||||
>${this.hass.localize(
|
||||
@ -126,7 +126,7 @@ export class HuiGlanceCardEditor extends LitElement
|
||||
)}</ha-switch
|
||||
>
|
||||
<ha-switch
|
||||
?checked="${this._show_icon !== false}"
|
||||
.checked=${this._config!.show_icon !== false}
|
||||
.configValue="${"show_icon"}"
|
||||
@change="${this._valueChanged}"
|
||||
>${this.hass.localize(
|
||||
@ -134,7 +134,7 @@ export class HuiGlanceCardEditor extends LitElement
|
||||
)}</ha-switch
|
||||
>
|
||||
<ha-switch
|
||||
?checked="${this._show_state !== false}"
|
||||
.checked=${this._config!.show_state !== false}
|
||||
.configValue="${"show_state"}"
|
||||
@change="${this._valueChanged}"
|
||||
>${this.hass.localize(
|
||||
|
@ -113,7 +113,7 @@ export class HuiMapCardEditor extends LitElement implements LovelaceCardEditor {
|
||||
></paper-input>
|
||||
</div>
|
||||
<ha-switch
|
||||
?checked="${this._dark_mode !== false}"
|
||||
.checked="${this._config!.dark_mode !== false}"
|
||||
.configValue="${"dark_mode"}"
|
||||
@change="${this._valueChanged}"
|
||||
>${this.hass.localize(
|
||||
|
@ -190,7 +190,7 @@ export class HuiPictureEntityCardEditor extends LitElement
|
||||
</div>
|
||||
<div class="side-by-side">
|
||||
<ha-switch
|
||||
?checked="${this._show_name !== false}"
|
||||
.checked="${this._config!.show_name !== false}"
|
||||
.configValue="${"show_name"}"
|
||||
@change="${this._valueChanged}"
|
||||
>${this.hass.localize(
|
||||
@ -198,7 +198,7 @@ export class HuiPictureEntityCardEditor extends LitElement
|
||||
)}</ha-switch
|
||||
>
|
||||
<ha-switch
|
||||
?checked="${this._show_state !== false}"
|
||||
.checked="${this._config!.show_state !== false}"
|
||||
.configValue="${"show_state"}"
|
||||
@change="${this._valueChanged}"
|
||||
>${this.hass.localize(
|
||||
|
@ -119,7 +119,7 @@ export class HuiViewEditor extends LitElement {
|
||||
@theme-changed=${this._valueChanged}
|
||||
></hui-theme-select-editor>
|
||||
<ha-switch
|
||||
?checked=${this._panel !== false}
|
||||
.checked=${this._panel !== false}
|
||||
.configValue=${"panel"}
|
||||
@change=${this._valueChanged}
|
||||
>${this.hass.localize(
|
||||
|
Loading…
x
Reference in New Issue
Block a user