Add name attribute to autocomplete fields (#14258)

This commit is contained in:
Steve Repsher
2022-11-02 13:22:02 -04:00
committed by GitHub
parent ffbcb0a343
commit 98a32041d4
9 changed files with 17 additions and 2 deletions

View File

@@ -40,6 +40,8 @@ const LOAD_ELEMENTS = {
export class HaSelector extends LitElement {
@property() public hass!: HomeAssistant;
@property() public name?: string;
@property() public selector!: Selector;
@property() public value?: any;
@@ -74,6 +76,7 @@ export class HaSelector extends LitElement {
return html`
${dynamicElement(`ha-selector-${this._type}`, {
hass: this.hass,
name: this.name,
selector: this.selector,
value: this.value,
label: this.label,