Skip to content

Commit

Permalink
Merge pull request #15 from codingcyclist/dev_SB
Browse files Browse the repository at this point in the history
made config flow more robust by automatically removing any whitespace…
  • Loading branch information
codingcyclist authored Nov 15, 2020
2 parents 5bb7013 + 2ba7669 commit 2731c62
Show file tree
Hide file tree
Showing 15 changed files with 5 additions and 210 deletions.
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

130 changes: 0 additions & 130 deletions README.md

This file was deleted.

File renamed without changes.
5 changes: 3 additions & 2 deletions custom_components/ha_strava/camera.py → camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,10 @@ def img_update_handler(self, event):
self._urls = {
k: v
for (k, v) in sorted(
list(self._urls.items()), key=lambda k_v: k_v[1]["date"]
list(self._urls.items())[-self._max_images :],
key=lambda k_v: k_v[1]["date"],
)
}[-self._max_images :]
}

self._pickle_urls()
return
Expand Down
4 changes: 2 additions & 2 deletions custom_components/ha_strava/config_flow.py → config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,8 @@ async def async_step_get_oauth_info(self, user_input=None):
config_entry_oauth2_flow.LocalOAuth2Implementation(
self.hass,
DOMAIN,
user_input[CONF_CLIENT_ID],
user_input[CONF_CLIENT_SECRET],
str(user_input[CONF_CLIENT_ID]).strip(),
str(user_input[CONF_CLIENT_SECRET]).strip(),
OAUTH2_AUTHORIZE,
OAUTH2_TOKEN,
),
Expand Down
File renamed without changes.
Binary file removed ha_strava_config.gif
Binary file not shown.
Binary file removed ha_strava_install.gif
Binary file not shown.
Binary file removed ha_strava_ui_config.gif
Binary file not shown.
4 changes: 0 additions & 4 deletions hacs.json

This file was deleted.

51 changes: 0 additions & 51 deletions info.md

This file was deleted.

File renamed without changes.
File renamed without changes.
Binary file removed sensor_overview.png
Binary file not shown.
File renamed without changes.

0 comments on commit 2731c62

Please sign in to comment.