diff --git a/CHANGELOG.md b/CHANGELOG.md index ae5ca326..c8e2f685 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.3.14] - 2022-06-05 +### Improvement +- Added one more table to the weu showing the cost totals. +### Fix +- Fixed wrong type error when serializing numpy ints. Converted ints to Python type. + ## [0.3.13] - 2022-05-20 ### Fix - Fix wrong default value implementation for solver params. diff --git a/docs/conf.py b/docs/conf.py index 7cce9578..bd0f79fc 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -22,7 +22,7 @@ author = 'David HERNANDEZ' # The full version, including alpha/beta/rc tags -release = '0.3.13' +release = '0.3.14' # -- General configuration --------------------------------------------------- diff --git a/setup.py b/setup.py index 7fc2f78e..014114c2 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ setup( name='emhass', # Required - version='0.3.13', # Required + version='0.3.14', # Required description='An Energy Management System for Home Assistant', # Optional long_description=long_description, # Optional long_description_content_type='text/markdown', # Optional (see note above) diff --git a/src/emhass/retrieve_hass.py b/src/emhass/retrieve_hass.py index fa55b30d..79e408a8 100644 --- a/src/emhass/retrieve_hass.py +++ b/src/emhass/retrieve_hass.py @@ -200,7 +200,7 @@ def get_attr_data_dict(data_df: pd.DataFrame, idx: int, entity_id: str, list_df = copy.deepcopy(data_df).loc[data_df.index[idx]:].reset_index() list_df.columns = ['timestamps', entity_id] ts_list = [str(i) for i in list_df['timestamps'].tolist()] - vals_list = [int(np.round(i)) for i in list_df[entity_id].tolist()] + vals_list = [str(np.round(i)) for i in list_df[entity_id].tolist()] forecast_list = [] for i, ts in enumerate(ts_list): datum = {}