Skip to content

Commit

Permalink
Implement dynamic timeouts (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
pantherale0 committed Nov 5, 2023
1 parent 9cf7831 commit 745593d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/nintendo_parental/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ async def _async_update_data(self):
"""Request the API to update."""
try:
with contextlib.suppress(InvalidSessionTokenException):
async with async_timeout.timeout(50):
async with async_timeout.timeout(self.update_interval - 5):
return await self.api.update()
except InvalidOAuthConfigurationException as err:
raise ConfigEntryAuthFailed(err) from err
Expand Down
2 changes: 1 addition & 1 deletion custom_components/nintendo_parental/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
"requirements": [
"pynintendoparental==0.1.12"
],
"version": "2023.11.0b0"
"version": "2023.11.1"
}

0 comments on commit 745593d

Please sign in to comment.