Skip to content

Commit

Permalink
minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
snicker committed Feb 6, 2022
1 parent 284bd6e commit f18f6f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/zwift/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"documentation": "https://github.com/snicker/zwift_hass/blob/master/README.md",
"requirements": ["zwift-client==0.2.0"],
"dependencies": [],
"version": "3.2.5",
"version": "3.2.6",
"codeowners": ["@snicker"],
"iot_class": "cloud_polling"
}
2 changes: 1 addition & 1 deletion custom_components/zwift/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def update(self):
current_interval = self.online_update_interval
new_interval = self.online_update_interval + timedelta(seconds=0.25)
self.online_update_interval = new_interval
_LOGGER.warning('Upstream request throttling 429 - known issue, increasing interval from {}s to {}s')
_LOGGER.warning('Upstream request throttling 429 - known issue, increasing interval from {}s to {}s'.format(current_interval.total_seconds(),new_interval.total_seconds()))
else:
_LOGGER.exception('something went wrong in Zwift python library - {} while updating zwift sensor for player {}'.format(str(e), player_id))
except Exception as e:
Expand Down

0 comments on commit f18f6f7

Please sign in to comment.