Skip to content

Commit

Permalink
Replace async_timeout with asyncio.timeout (#860)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck committed Nov 20, 2023
1 parent 1c68dce commit 6b7f41f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/adguardhome/adguardhome.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from typing import Any, Mapping, Self

import aiohttp
import async_timeout
from yarl import URL

from .exceptions import AdGuardHomeConnectionError, AdGuardHomeError
Expand Down Expand Up @@ -141,7 +140,7 @@ async def request( # noqa: PLR0913
skip_auto_headers = {"Content-Type"}

try:
async with async_timeout.timeout(self.request_timeout):
async with asyncio.timeout(self.request_timeout):
response = await self._session.request(
method,
url,
Expand Down

0 comments on commit 6b7f41f

Please sign in to comment.