@@ -58,15 +58,19 @@ class DialogPasteReplace extends LitElement implements HassDialog {
read-only
>
-
-
+
+
${this.hass.localize("ui.common.append")}
-
+
${this.hass.localize("ui.common.replace")}
-
-
+
+
`;
}
@@ -90,10 +94,6 @@ class DialogPasteReplace extends LitElement implements HassDialog {
font-size: inherit;
font-weight: inherit;
}
- div[slot="primaryAction"] {
- display: flex;
- gap: var(--ha-space-2);
- }
`,
];
}
diff --git a/src/panels/config/devices/device-detail/ha-device-automation-dialog.ts b/src/panels/config/devices/device-detail/ha-device-automation-dialog.ts
index 72dc04ddd8..0e904b5e1d 100644
--- a/src/panels/config/devices/device-detail/ha-device-automation-dialog.ts
+++ b/src/panels/config/devices/device-detail/ha-device-automation-dialog.ts
@@ -9,10 +9,10 @@ import { css, html, LitElement, nothing } from "lit";
import { customElement, property, state } from "lit/decorators";
import { fireEvent } from "../../../../common/dom/fire_event";
import { shouldHandleRequestSelectedEvent } from "../../../../common/mwc/handle-request-selected-event";
-import { createCloseHeading } from "../../../../components/ha-dialog";
import "../../../../components/ha-icon-next";
import "../../../../components/ha-list";
import "../../../../components/ha-list-item";
+import "../../../../components/ha-wa-dialog";
import type { AutomationConfig } from "../../../../data/automation";
import { showAutomationEditor } from "../../../../data/automation";
import type {
@@ -44,12 +44,19 @@ export class DialogDeviceAutomation extends LitElement {
@state() private _params?: DeviceAutomationDialogParams;
+ @state() private _open = false;
+
public async showDialog(params: DeviceAutomationDialogParams): Promise