Fix aiohttp test RuntimeWarning (#98568)

This commit is contained in:
Marc Mueller 2023-08-17 17:42:20 +02:00 committed by GitHub
parent e95979e9af
commit 529bc507a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ class BrData:
return result
finally:
if resp is not None:
await resp.release()
resp.release()
async def _async_update(self):
"""Update the data from buienradar."""

View File

@ -255,7 +255,7 @@ class AiohttpClientMockResponse:
"""Return mock response as a json."""
return loads(self.response.decode(encoding))
async def release(self):
def release(self):
"""Mock release."""
def raise_for_status(self):