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

Safer lookup of description_placeholders when service is invalid (#28273)

This commit is contained in:
karwosts
2025-12-01 22:08:36 -08:00
committed by GitHub
parent 824a3f288d
commit 029eba7ab8
2 changed files with 2 additions and 2 deletions

View File

@@ -467,7 +467,7 @@ export class HaServiceControl extends LitElement {
const descriptionPlaceholders = const descriptionPlaceholders =
domain && serviceName domain && serviceName
? this.hass.services[domain][serviceName].description_placeholders ? this.hass.services[domain]?.[serviceName]?.description_placeholders
: undefined; : undefined;
const description = const description =

View File

@@ -137,7 +137,7 @@ class HaPanelDevAction extends LitElement {
const descriptionPlaceholders = const descriptionPlaceholders =
domain && serviceName domain && serviceName
? this.hass.services[domain][serviceName].description_placeholders ? this.hass.services[domain]?.[serviceName]?.description_placeholders
: undefined; : undefined;
return html` return html`