diff --git a/src/components/ha-form/ha-form.ts b/src/components/ha-form/ha-form.ts index b02f7f5b0d..68f34f7bd2 100644 --- a/src/components/ha-form/ha-form.ts +++ b/src/components/ha-form/ha-form.ts @@ -189,8 +189,13 @@ export class HaForm extends LitElement implements HaFormElement { ? ev.detail.value : { [schema.name]: ev.detail.value }; + this.data = { + ...this.data, + ...newValue, + }; + fireEvent(this, "value-changed", { - value: { ...this.data, ...newValue }, + value: this.data, }); }); }