From ad8d3c7fa8193a39eb80dfba741dc1e02022c3cf Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Wed, 5 Jul 2023 16:53:19 +0200 Subject: [PATCH] Fix non optional response service, variable field disabled (#17171) --- .../automation/action/types/ha-automation-action-service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/panels/config/automation/action/types/ha-automation-action-service.ts b/src/panels/config/automation/action/types/ha-automation-action-service.ts index 0c403a13dd..ed8868b099 100644 --- a/src/panels/config/automation/action/types/ha-automation-action-service.ts +++ b/src/panels/config/automation/action/types/ha-automation-action-service.ts @@ -152,7 +152,9 @@ export class HaServiceAction extends LitElement implements ActionElement { .required=${!this.hass.services[domain][service].response! .optional} .disabled=${this.disabled || - (!this._action.response_variable && !this._responseChecked)} + (this.hass.services[domain][service].response!.optional && + !this._action.response_variable && + !this._responseChecked)} @change=${this._responseVariableChanged} > `