Fix missing helper for entity picker (#25622)

This commit is contained in:
Paul Bottein 2025-05-28 13:06:45 +02:00 committed by GitHub
parent d33636c6fb
commit 06db0f4b98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -390,6 +390,7 @@ export class HaEntityPicker extends LitElement {
.autofocus=${this.autofocus} .autofocus=${this.autofocus}
.allowCustomValue=${this.allowCustomEntity} .allowCustomValue=${this.allowCustomEntity}
.label=${this.label} .label=${this.label}
.helper=${this.helper}
.searchLabel=${this.searchLabel} .searchLabel=${this.searchLabel}
.notFoundLabel=${notFoundLabel} .notFoundLabel=${notFoundLabel}
.placeholder=${placeholder} .placeholder=${placeholder}

View File

@ -104,8 +104,8 @@ export class HaGenericPicker extends LitElement {
.getAdditionalItems=${this.getAdditionalItems} .getAdditionalItems=${this.getAdditionalItems}
></ha-picker-combo-box> ></ha-picker-combo-box>
`} `}
${this._renderHelper()}
</div> </div>
${this._renderHelper()}
`; `;
} }
@ -164,6 +164,10 @@ export class HaGenericPicker extends LitElement {
display: block; display: block;
margin: 0 0 8px; margin: 0 0 8px;
} }
ha-input-helper-text {
display: block;
margin: 8px 0 0;
}
`, `,
]; ];
} }