Fix yaml editor save in config-flow (#26963)
parent
21aae02652
commit
9fba7427f8
|
@ -97,7 +97,7 @@ export default class HaAutomationActionEditor extends LitElement {
|
|||
if (!ev.detail.isValid) {
|
||||
return;
|
||||
}
|
||||
fireEvent(this, "yaml-changed", {
|
||||
fireEvent(this, this.inSidebar ? "yaml-changed" : "value-changed", {
|
||||
value: migrateAutomationAction(ev.detail.value),
|
||||
});
|
||||
}
|
||||
|
|
|
@ -103,7 +103,9 @@ export default class HaAutomationConditionEditor extends LitElement {
|
|||
if (!ev.detail.isValid) {
|
||||
return;
|
||||
}
|
||||
fireEvent(this, "yaml-changed", { value: ev.detail.value });
|
||||
fireEvent(this, this.inSidebar ? "yaml-changed" : "value-changed", {
|
||||
value: ev.detail.value,
|
||||
});
|
||||
}
|
||||
|
||||
private _onUiChanged(ev: CustomEvent) {
|
||||
|
|
|
@ -121,7 +121,7 @@ export default class HaAutomationTriggerEditor extends LitElement {
|
|||
if (!ev.detail.isValid) {
|
||||
return;
|
||||
}
|
||||
fireEvent(this, "yaml-changed", {
|
||||
fireEvent(this, this.inSidebar ? "yaml-changed" : "value-changed", {
|
||||
value: migrateAutomationTrigger(ev.detail.value),
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue