+
${cache(
this._currTab === "clusters"
? html`
@@ -170,7 +176,7 @@ class DialogZHAManageZigbeeDevice extends LitElement {
`
)}
-
+
`;
}
@@ -216,11 +222,6 @@ class DialogZHAManageZigbeeDevice extends LitElement {
haStyleDialog,
haStyleDialogFixedTop,
css`
- ha-dialog {
- --dialog-surface-position: static;
- --dialog-content-position: static;
- }
-
.content {
outline: none;
display: flex;
@@ -228,16 +229,6 @@ class DialogZHAManageZigbeeDevice extends LitElement {
gap: var(--ha-space-2);
}
- @media all and (min-width: 600px) and (min-height: 501px) {
- ha-dialog {
- --mdc-dialog-min-width: 560px;
- --mdc-dialog-max-width: 560px;
- --mdc-dialog-max-height: calc(
- 100vh - var(--ha-space-18) - var(--safe-area-inset-y)
- );
- }
- }
-
ha-tab-group-tab {
flex: 1;
}
diff --git a/src/panels/config/integrations/integration-panels/zha/dialog-zha-reconfigure-device.ts b/src/panels/config/integrations/integration-panels/zha/dialog-zha-reconfigure-device.ts
index 8d71981604..95cad5c651 100644
--- a/src/panels/config/integrations/integration-panels/zha/dialog-zha-reconfigure-device.ts
+++ b/src/panels/config/integrations/integration-panels/zha/dialog-zha-reconfigure-device.ts
@@ -5,10 +5,11 @@ import { css, html, LitElement, nothing } from "lit";
import { customElement, property, state } from "lit/decorators";
import { fireEvent } from "../../../../../common/dom/fire_event";
import "../../../../../components/ha-spinner";
-import { createCloseHeading } from "../../../../../components/ha-dialog";
import "../../../../../components/ha-svg-icon";
import "../../../../../components/ha-tooltip";
import "../../../../../components/ha-button";
+import "../../../../../components/ha-dialog-footer";
+import "../../../../../components/ha-wa-dialog";
import type {
AttributeConfigurationStatus,
Cluster,
@@ -46,15 +47,22 @@ class DialogZHAReconfigureDevice extends LitElement {
@state() private _showDetails = false;
+ @state() private _open = false;
+
private _subscribed?: Promise
;
public showDialog(params: ZHAReconfigureDeviceDialogParams): void {
this._params = params;
this._clusterConfigurationStatuses = new Map();
this._stages = undefined;
+ this._open = true;
}
public closeDialog(): void {
+ this._open = false;
+ }
+
+ private _dialogClosed(): void {
this._unsubscribe();
this._params = undefined;
this._status = undefined;
@@ -71,15 +79,16 @@ class DialogZHAReconfigureDevice extends LitElement {
}
return html`
-
${!this._status
? html`
@@ -95,14 +104,6 @@ class DialogZHAReconfigureDevice extends LitElement {
)}
-
- ${this.hass.localize(
- "ui.dialogs.zha_reconfigure_device.start_reconfiguration"
- )}
-
`
: ``}
${this._status === "started"
@@ -124,22 +125,6 @@ class DialogZHAReconfigureDevice extends LitElement {
-