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"