Skip to content

Commit

Permalink
fix bug in utility selection in config flow (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
firstof9 authored Sep 7, 2021
1 parent 4e29eb5 commit a381b52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion custom_components/openei/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,10 @@ async def _get_plan_list(hass, user_input) -> list | None:
lat = hass.config.latitude
lon = hass.config.longitude
api = user_input[CONF_API_KEY]
radius = user_input[CONF_RADIUS]
utility = user_input[CONF_UTILITY]

plans = openeihttp.Rates(api, lat, lon)
plans = openeihttp.Rates(api, lat, lon, radius=radius)
plans = await hass.async_add_executor_job(_lookup_plans, plans)
value = {}

Expand Down
2 changes: 1 addition & 1 deletion custom_components/openei/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"config_flow": true,
"codeowners": ["@firstof9"],
"requirements": ["python-openei==0.1.6"],
"version": "0.0.6"
"version": "0.0.7"
}

0 comments on commit a381b52

Please sign in to comment.