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

View File

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