Skip to content

Commit

Permalink
Update online API request interval to 2 seconds for issue #28
Browse files Browse the repository at this point in the history
  • Loading branch information
snicker committed Nov 13, 2021
1 parent 3bb017b commit 407f7dd
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.3",
"version": "3.2.4",
"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 @@ -296,7 +296,7 @@ def __init__(self, update_interval, username, password, players, hass):
self.players = {}
self._profile = None
self.update_interval = update_interval
self.online_update_interval = timedelta(seconds=1)
self.online_update_interval = timedelta(seconds=2)
if players:
for player_id in players:
self.add_tracked_player(player_id)
Expand Down

0 comments on commit 407f7dd

Please sign in to comment.