Skip to content

Commit

Permalink
added two more list fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoDerp committed Jan 30, 2024
1 parent 420f443 commit c019921
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 @@ -578,8 +578,8 @@ def build_params(params: dict, params_secrets: dict, options: dict, addon: int,
params['retrieve_hass_conf']['days_to_retrieve'] = options.get('historic_days_to_retrieve',params['retrieve_hass_conf']['days_to_retrieve'])
params['retrieve_hass_conf']['var_PV'] = options.get('sensor_power_photovoltaics',params['retrieve_hass_conf']['var_PV'])
params['retrieve_hass_conf']['var_load'] = options.get('sensor_power_load_no_var_loads',params['retrieve_hass_conf']['var_load'])
params['retrieve_hass_conf']['load_negative'] = options.get('load_negative',params['retrieve_hass_conf']['load_negative'])
params['retrieve_hass_conf']['set_zero_min'] = options.get('set_zero_min',params['retrieve_hass_conf']['set_zero_min'])
params['retrieve_hass_conf']['load_negative'] = [options.get('load_negative',params['retrieve_hass_conf']['load_negative'])]
params['retrieve_hass_conf']['set_zero_min'] = [options.get('set_zero_min',params['retrieve_hass_conf']['set_zero_min'])]
params['retrieve_hass_conf']['var_replace_zero'] = [options.get('sensor_power_photovoltaics',params['retrieve_hass_conf']['var_replace_zero'])]
params['retrieve_hass_conf']['var_interp'] = [options.get('sensor_power_photovoltaics',params['retrieve_hass_conf']['var_PV']), options.get('sensor_power_load_no_var_loads',params['retrieve_hass_conf']['var_load'])]
params['retrieve_hass_conf']['method_ts_round'] = options.get('method_ts_round',params['retrieve_hass_conf']['method_ts_round'])
Expand Down

0 comments on commit c019921

Please sign in to comment.