Skip to content

Commit

Permalink
Fix - Still solving perform backtest issues
Browse files Browse the repository at this point in the history
  • Loading branch information
davidusb-geek committed Feb 4, 2024
1 parent b3931cb commit 0f5335f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [0.7.5] - 2024-02-04
### Fix
- Fixing again "perform_backtest": "false" has no effect

## [0.7.4] - 2024-02-04
### Fix
- Fixed broken build params method. Reverting back to alternate PR from @GeoDerp
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.7.4'
release = '0.7.5'

# -- 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.7.4', # Required
version='0.7.5', # 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
4 changes: 2 additions & 2 deletions src/emhass/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,12 +298,12 @@ def treat_runtimeparams(runtimeparams: str, params: str, retrieve_hass_conf: dic
if 'perform_backtest' not in runtimeparams.keys():
perform_backtest = False
else:
perform_backtest = bool(runtimeparams['perform_backtest'])
perform_backtest = eval(str(runtimeparams['perform_backtest']).capitalize())
params['passed_data']['perform_backtest'] = perform_backtest
if 'model_predict_publish' not in runtimeparams.keys():
model_predict_publish = False
else:
model_predict_publish = bool(runtimeparams['model_predict_publish'])
model_predict_publish = eval(str(runtimeparams['model_predict_publish']).capitalize())
params['passed_data']['model_predict_publish'] = model_predict_publish
if 'model_predict_entity_id' not in runtimeparams.keys():
model_predict_entity_id = "sensor.p_load_forecast_custom_model"
Expand Down

0 comments on commit 0f5335f

Please sign in to comment.