From 0f5335ffb102ce57b34e90cded4e7a817f96bce3 Mon Sep 17 00:00:00 2001 From: davidusb-geek Date: Sun, 4 Feb 2024 21:33:28 +0100 Subject: [PATCH] Fix - Still solving perform backtest issues --- CHANGELOG.md | 4 ++++ docs/conf.py | 2 +- setup.py | 2 +- src/emhass/utils.py | 4 ++-- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4862a3da..800cd49f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/docs/conf.py b/docs/conf.py index e12ad5c1..990f1bd5 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.7.4' +release = '0.7.5' # -- General configuration --------------------------------------------------- diff --git a/setup.py b/setup.py index 359494bb..8a0868ba 100644 --- a/setup.py +++ b/setup.py @@ -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) diff --git a/src/emhass/utils.py b/src/emhass/utils.py index fd3c482a..eb286ab3 100644 --- a/src/emhass/utils.py +++ b/src/emhass/utils.py @@ -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"