diff --git a/src/components/ha-selector/ha-selector-text.ts b/src/components/ha-selector/ha-selector-text.ts index 89f764f626..3629ba3e22 100644 --- a/src/components/ha-selector/ha-selector-text.ts +++ b/src/components/ha-selector/ha-selector-text.ts @@ -10,7 +10,7 @@ import "../ha-textfield"; @customElement("ha-selector-text") export class HaTextSelector extends LitElement { - @property() public hass!: HomeAssistant; + @property() public hass?: HomeAssistant; @property() public value?: any; @@ -76,11 +76,11 @@ export class HaTextSelector extends LitElement { ${this.selector.text?.type === "password" ? html``