Skip to content

Commit

Permalink
utils.py runtimeparams freq fix tab mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoDerp authored Apr 16, 2024
1 parent 94a803e commit 312a0e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/emhass/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,8 @@ def treat_runtimeparams(runtimeparams: str, params: str, retrieve_hass_conf: dic
retrieve_hass_conf['solar_forecast_kwp'] = runtimeparams['solar_forecast_kwp']
optim_conf['weather_forecast_method'] = 'solar.forecast'
if 'freq' in runtimeparams.keys():
retrieve_hass_conf['freq'] = pd.to_timedelta(runtimeparams['freq'], "minutes")
if 'weight_battery_discharge' in runtimeparams.keys():
retrieve_hass_conf['freq'] = pd.to_timedelta(runtimeparams['freq'], "minutes")
if 'weight_battery_discharge' in runtimeparams.keys():
optim_conf['weight_battery_discharge'] = runtimeparams['weight_battery_discharge']
if 'weight_battery_charge' in runtimeparams.keys():
optim_conf['weight_battery_charge'] = runtimeparams['weight_battery_charge']
Expand Down

0 comments on commit 312a0e9

Please sign in to comment.