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:
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user