Close new automation dialog before moving to next step (#9071)

* Close new automatin dialog before next step

* Update dialog-thingtalk.ts

* Fix

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
Paulus Schoutsen
2021-05-08 04:53:07 -07:00
committed by GitHub
parent 88dc65bc4e
commit 7f49f039fd
4 changed files with 33 additions and 24 deletions

View File

@@ -97,7 +97,7 @@ export const closeDialog = async (dialogTag: string): Promise<boolean> => {
if (!(dialogTag in LOADED)) {
return true;
}
const dialogElement = await LOADED[dialogTag];
const dialogElement: HassDialog = await LOADED[dialogTag];
if (dialogElement.closeDialog) {
return dialogElement.closeDialog() !== false;
}