Skip to content

Commit

Permalink
Merge pull request #9 from GuilleGF/fix/timeout-error
Browse files Browse the repository at this point in the history
fix: increase the timeout
  • Loading branch information
GuilleGF authored Apr 20, 2022
2 parents 3c348cb + 54c204b commit 6d18a18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/ovh/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

DEFAULT_INTERVAL = timedelta(minutes=10)

TIMEOUT = 10
TIMEOUT = 30
UPDATE_URL = "https://www.ovh.com/nic/update"

OVH_ERRORS = {
Expand Down Expand Up @@ -81,7 +81,7 @@ async def _update_ovh(hass, session, domain, user, password):
authentication = BasicAuth(user, password)

try:
with async_timeout.timeout(TIMEOUT):
async with async_timeout.timeout(TIMEOUT):
resp = await session.get(UPDATE_URL, params=params, auth=authentication)
body = await resp.text()

Expand Down

0 comments on commit 6d18a18

Please sign in to comment.