1
0
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:
karwosts
2025-12-07 22:05:35 -08:00
committed by GitHub
parent cff7ed9b05
commit f44be2d3b9

View File

@@ -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
}`; }`;
} }