Fix non optional response service, variable field disabled (#17171)

This commit is contained in:
Bram Kragten 2023-07-05 16:53:19 +02:00 committed by GitHub
parent 507f22a5cd
commit ad8d3c7fa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,7 +152,9 @@ export class HaServiceAction extends LitElement implements ActionElement {
.required=${!this.hass.services[domain][service].response! .required=${!this.hass.services[domain][service].response!
.optional} .optional}
.disabled=${this.disabled || .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} @change=${this._responseVariableChanged}
></ha-textfield> ></ha-textfield>
</ha-settings-row>` </ha-settings-row>`