From 3766f4478775e9ae6e26d9c49d576120abdd33f7 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Thu, 28 Jan 2021 20:57:15 +0100 Subject: [PATCH] Bumped version to 20210127.2 --- setup.py | 2 +- src/components/ha-form/ha-form.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 5da1895d91..407d53fee3 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages setup( name="home-assistant-frontend", - version="20210127.1", + version="20210127.2", description="The Home Assistant frontend", url="https://github.com/home-assistant/home-assistant-polymer", author="The Home Assistant Authors", diff --git a/src/components/ha-form/ha-form.ts b/src/components/ha-form/ha-form.ts index 25cf8cd18d..adfe4fd71f 100644 --- a/src/components/ha-form/ha-form.ts +++ b/src/components/ha-form/ha-form.ts @@ -202,9 +202,8 @@ export class HaForm extends LitElement implements HaFormElement { ev.stopPropagation(); const schema = (ev.target as HaFormElement).schema as HaFormSchema; const data = this.data as HaFormDataContainer; - data[schema.name] = ev.detail.value; fireEvent(this, "value-changed", { - value: { ...data }, + value: { ...data, [schema.name]: ev.detail.value }, }); }