Skip to content

Commit 6d18a18

Browse files
authored
Merge pull request #9 from GuilleGF/fix/timeout-error
fix: increase the timeout
2 parents 3c348cb + 54c204b commit 6d18a18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom_components/ovh/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
DEFAULT_INTERVAL = timedelta(minutes=10)
2626

27-
TIMEOUT = 10
27+
TIMEOUT = 30
2828
UPDATE_URL = "https://www.ovh.com/nic/update"
2929

3030
OVH_ERRORS = {
@@ -81,7 +81,7 @@ async def _update_ovh(hass, session, domain, user, password):
8181
authentication = BasicAuth(user, password)
8282

8383
try:
84-
with async_timeout.timeout(TIMEOUT):
84+
async with async_timeout.timeout(TIMEOUT):
8585
resp = await session.get(UPDATE_URL, params=params, auth=authentication)
8686
body = await resp.text()
8787

0 commit comments

Comments
 (0)