mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-10 11:30:01 +00:00
Fix yaml editor save in config-flow (#26963)
This commit is contained in:
@@ -97,7 +97,7 @@ export default class HaAutomationActionEditor extends LitElement {
|
|||||||
if (!ev.detail.isValid) {
|
if (!ev.detail.isValid) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
fireEvent(this, "yaml-changed", {
|
fireEvent(this, this.inSidebar ? "yaml-changed" : "value-changed", {
|
||||||
value: migrateAutomationAction(ev.detail.value),
|
value: migrateAutomationAction(ev.detail.value),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -103,7 +103,9 @@ export default class HaAutomationConditionEditor extends LitElement {
|
|||||||
if (!ev.detail.isValid) {
|
if (!ev.detail.isValid) {
|
||||||
return;
|
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) {
|
private _onUiChanged(ev: CustomEvent) {
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ export default class HaAutomationTriggerEditor extends LitElement {
|
|||||||
if (!ev.detail.isValid) {
|
if (!ev.detail.isValid) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
fireEvent(this, "yaml-changed", {
|
fireEvent(this, this.inSidebar ? "yaml-changed" : "value-changed", {
|
||||||
value: migrateAutomationTrigger(ev.detail.value),
|
value: migrateAutomationTrigger(ev.detail.value),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user