diff --git a/src/panels/config/automation/sidebar/ha-automation-sidebar-action.ts b/src/panels/config/automation/sidebar/ha-automation-sidebar-action.ts index 0e51350c99..fd0c1e2f14 100644 --- a/src/panels/config/automation/sidebar/ha-automation-sidebar-action.ts +++ b/src/panels/config/automation/sidebar/ha-automation-sidebar-action.ts @@ -98,9 +98,9 @@ export default class HaAutomationSidebarAction extends LitElement { title = `${domainToName(this.hass.localize, domain)}: ${ this.hass.localize( `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 }`; }