Fix yaml editor save in config-flow (#26963)

pull/27155/head^2^2
Wendelin 2025-09-09 09:25:06 +02:00 committed by Bram Kragten
parent 21aae02652
commit 9fba7427f8
3 changed files with 5 additions and 3 deletions

View File

@ -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),
});
}

View File

@ -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) {

View File

@ -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),
});
}