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
parent ff62fdb69d
commit 12bb3f5796

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 ||