Skip to content

Commit 37c3432

Browse files
authored
Fix async_timeout deprecation warning. (#471)
1 parent 543e068 commit 37c3432

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/adguardhome/adguardhome.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ async def request(
132132
self._close_session = True
133133

134134
try:
135-
with async_timeout.timeout(self.request_timeout):
135+
async with async_timeout.timeout(self.request_timeout):
136136
response = await self._session.request(
137137
method,
138138
url,

0 commit comments

Comments
 (0)