Skip to content

Commit

Permalink
Fix - Fixed data type for object to serialize and prepared new version
Browse files Browse the repository at this point in the history
  • Loading branch information
davidusb-geek committed Jun 5, 2022
1 parent 329fe65 commit 43b98b3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ---------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/emhass/retrieve_hass.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down

0 comments on commit 43b98b3

Please sign in to comment.