mirror of
https://github.com/home-assistant/frontend.git
synced 2025-12-20 02:38:53 +00:00
More unsafe description_placeholders fixes (#28416)
This commit is contained in:
@@ -98,9 +98,9 @@ export default class HaAutomationSidebarAction extends LitElement {
|
|||||||
title = `${domainToName(this.hass.localize, domain)}: ${
|
title = `${domainToName(this.hass.localize, domain)}: ${
|
||||||
this.hass.localize(
|
this.hass.localize(
|
||||||
`component.${domain}.services.${service}.name`,
|
`component.${domain}.services.${service}.name`,
|
||||||
this.hass.services[domain][service].description_placeholders
|
this.hass.services[domain]?.[service]?.description_placeholders
|
||||||
) ||
|
) ||
|
||||||
this.hass.services[domain][service]?.name ||
|
this.hass.services[domain]?.[service]?.name ||
|
||||||
title
|
title
|
||||||
}`;
|
}`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user