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