Use close dialog function to close device registry detail dialog (#8269)

This commit is contained in:
Bram Kragten 2021-01-28 20:18:13 +01:00 committed by GitHub
parent c1caad6d43
commit 448d19bfbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,7 +149,7 @@ class DialogDeviceRegistryDetail extends LitElement {
area_id: this._areaId || null,
disabled_by: this._disabledBy || null,
});
this._params = undefined;
this.closeDialog();
} catch (err) {
this._error =
err.message ||