Fix thingktalk dialog (#10600)

This commit is contained in:
Bram Kragten 2021-11-10 20:36:18 +01:00 committed by GitHub
parent 6518aefb7f
commit 6623e5f017
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,6 +63,13 @@ class DialogThingtalk extends LitElement {
fireEvent(this, "dialog-closed", { dialog: this.localName });
}
public closeInitDialog() {
if (this._placeholders) {
return;
}
this.closeDialog();
}
protected render(): TemplateResult {
if (!this._params) {
return html``;
@ -82,7 +89,7 @@ class DialogThingtalk extends LitElement {
return html`
<ha-dialog
open
@closed=${this.closeDialog}
@closed=${this.closeInitDialog}
.heading=${this.hass.localize(
`ui.panel.config.automation.thingtalk.task_selection.header`
)}