-
-
-
+
+ .value=${this.config.description || ""}
+ @change=${this._valueChanged}
+ >
${this.hass.localize(
"ui.panel.config.automation.editor.modes.description",
@@ -98,16 +99,18 @@ export class HaManualAutomationEditor extends LitElement {
)}
${this.config.mode && MODES_MAX.includes(this.config.mode)
- ? html`
- `
+ ? html`
+
+
+ `
: html``}
${this.stateObj
@@ -243,7 +246,7 @@ export class HaManualAutomationEditor extends LitElement {
if (!name) {
return;
}
- let newVal = ev.detail.value;
+ let newVal = target.value;
if (target.type === "number") {
newVal = Number(newVal);
}
diff --git a/src/panels/config/automation/trigger/ha-automation-trigger-row.ts b/src/panels/config/automation/trigger/ha-automation-trigger-row.ts
index 9103ab5540..ecf1f1a4b7 100644
--- a/src/panels/config/automation/trigger/ha-automation-trigger-row.ts
+++ b/src/panels/config/automation/trigger/ha-automation-trigger-row.ts
@@ -14,6 +14,7 @@ import { LocalizeFunc } from "../../../../common/translations/localize";
import "../../../../components/ha-button-menu";
import "../../../../components/ha-card";
import "../../../../components/ha-alert";
+import "../../../../components/ha-textfield";
import "../../../../components/ha-icon-button";
import type { Trigger } from "../../../../data/automation";
import { showConfirmationDialog } from "../../../../dialogs/generic/show-dialog-box";
@@ -200,14 +201,14 @@ export default class HaAutomationTriggerRow extends LitElement {
${showId
? html`
-
@@ -287,7 +288,7 @@ export default class HaAutomationTriggerRow extends LitElement {
}
private _idChanged(ev: CustomEvent) {
- const newId = ev.detail.value;
+ const newId = (ev.target as any).value;
if (newId === (this.trigger.id ?? "")) {
return;
}
@@ -333,7 +334,11 @@ export default class HaAutomationTriggerRow extends LitElement {
--mdc-theme-text-primary-on-background: var(--disabled-text-color);
}
mwc-select {
- margin-bottom: 16px;
+ margin-bottom: 24px;
+ }
+ ha-textfield {
+ display: block;
+ margin-bottom: 24px;
}
`,
];
diff --git a/src/panels/config/automation/trigger/types/ha-automation-trigger-event.ts b/src/panels/config/automation/trigger/types/ha-automation-trigger-event.ts
index 6804fb8787..5c191e76db 100644
--- a/src/panels/config/automation/trigger/types/ha-automation-trigger-event.ts
+++ b/src/panels/config/automation/trigger/types/ha-automation-trigger-event.ts
@@ -1,7 +1,7 @@
-import "@polymer/paper-input/paper-input";
-import { html, LitElement } from "lit";
+import { css, CSSResultGroup, html, LitElement } from "lit";
import { customElement, property } from "lit/decorators";
import { fireEvent } from "../../../../../common/dom/fire_event";
+import "../../../../../components/ha-textfield";
import "../../../../../components/ha-yaml-editor";
import "../../../../../components/user/ha-users-picker";
import { EventTrigger } from "../../../../../data/automation";
@@ -24,14 +24,14 @@ export class HaEventTrigger extends LitElement implements TriggerElement {
protected render() {
const { event_type, event_data, context } = this.trigger;
return html`
-
+ @change=${this._valueChanged}
+ >