fix: don't render extra fields when there are none (#14374)

This commit is contained in:
Ben Randall 2022-11-14 11:30:51 -05:00 committed by GitHub
parent 65426bd2d0
commit 90b9eaeb19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ export class HaDeviceAction extends LitElement {
"ui.panel.config.automation.editor.actions.type.device_id.action"
)}
></ha-device-action-picker>
${this._capabilities?.extra_fields
${this._capabilities?.extra_fields?.length
? html`
<ha-form
.hass=${this.hass}