From 2c8e10392e7363abebe59e1ba99649cc3c16d8ab Mon Sep 17 00:00:00 2001 From: Nathan Marlor Date: Wed, 19 Oct 2022 09:19:49 +0100 Subject: [PATCH] Fixed bug for Aux values which do not cleanly start at 0 --- custom_components/foxess_em/average/average_model.py | 2 +- custom_components/foxess_em/const.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/foxess_em/average/average_model.py b/custom_components/foxess_em/average/average_model.py index b6f939b..bb4c3e8 100755 --- a/custom_components/foxess_em/average/average_model.py +++ b/custom_components/foxess_em/average/average_model.py @@ -102,7 +102,7 @@ async def _update_item(self, item: HistorySensor) -> None: values_dict.append( { "datetime": from_date.replace(tzinfo=pytz.UTC), - "value": values_dict[0]["value"], + "value": 0, } ) values_dict.append( diff --git a/custom_components/foxess_em/const.py b/custom_components/foxess_em/const.py index 474d17c..a5979b3 100755 --- a/custom_components/foxess_em/const.py +++ b/custom_components/foxess_em/const.py @@ -3,7 +3,7 @@ NAME = "foxess_em" DOMAIN = "foxess_em" DOMAIN_DATA = f"{DOMAIN}_data" -VERSION = "1.0.0" +VERSION = "1.1.0" ISSUE_URL = "https://github.com/nathanmarlor/foxess_em/issues"