1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-19 18:28:42 +00:00

Fix boolean attributes (#23189)

This commit is contained in:
Paul Bottein
2024-12-06 18:39:34 +01:00
committed by GitHub
parent ea5bf17780
commit 6934f0626c
157 changed files with 275 additions and 234 deletions

View File

@@ -18,7 +18,8 @@ class DemoCard extends LitElement {
@property({ attribute: false }) public config!: DemoCardConfig;
@property({ attribute: false, type: Boolean }) public showConfig = false;
@property({ attribute: "show-config", type: Boolean })
public showConfig = false;
@state() private _size?: number;

View File

@@ -12,7 +12,8 @@ class DemoMoreInfo extends LitElement {
@property({ attribute: false }) public entityId!: string;
@property({ attribute: false, type: Boolean }) public showConfig = false;
@property({ attribute: "show-config", type: Boolean })
public showConfig = false;
render() {
const state = this._getState(this.entityId, this.hass.states);