1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-20 02:38:53 +00:00

Fix labels in entity picker create entity (#28503)

This commit is contained in:
karwosts
2025-12-11 05:55:15 -08:00
committed by GitHub
parent 0c1627c69a
commit 055f6c82fb

View File

@@ -228,7 +228,7 @@ export class HaEntityPicker extends LitElement {
if (!createDomains?.length) {
return [];
}
this.hass.loadFragmentTranslation("config");
return createDomains.map((domain) => {
const primary = localize(
"ui.components.entity.entity-picker.create_helper",
@@ -236,7 +236,7 @@ export class HaEntityPicker extends LitElement {
domain: isHelperDomain(domain)
? localize(
`ui.panel.config.helpers.types.${domain as HelperDomain}`
)
) || domain
: domainToName(localize, domain),
}
);