diff --git a/src/shared/state-info.ts b/src/shared/state-info.ts index 330fc8ac4..28613bc98 100644 --- a/src/shared/state-info.ts +++ b/src/shared/state-info.ts @@ -1,18 +1,18 @@ import { css, CSSResultGroup, html, LitElement, nothing, TemplateResult } from "lit"; -import { property, customElement } from "lit/decorators.js"; +import { customElement, property } from "lit/decorators.js"; @customElement("mushroom-state-info") export class StateItem extends LitElement { - @property() public primary: string = ""; + @property({ attribute: false }) public primary?: string | TemplateResult<1>; - @property() public secondary?: string; + @property({ attribute: false }) public secondary?: string | TemplateResult<1>; - @property() public multiline_secondary?: boolean = false; + @property({ type: Boolean }) public multiline_secondary?: boolean = false; protected render(): TemplateResult { return html`