mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix aiohttp test RuntimeWarning (#98568)
This commit is contained in:
parent
e95979e9af
commit
529bc507a0
@ -109,7 +109,7 @@ class BrData:
|
|||||||
return result
|
return result
|
||||||
finally:
|
finally:
|
||||||
if resp is not None:
|
if resp is not None:
|
||||||
await resp.release()
|
resp.release()
|
||||||
|
|
||||||
async def _async_update(self):
|
async def _async_update(self):
|
||||||
"""Update the data from buienradar."""
|
"""Update the data from buienradar."""
|
||||||
|
@ -255,7 +255,7 @@ class AiohttpClientMockResponse:
|
|||||||
"""Return mock response as a json."""
|
"""Return mock response as a json."""
|
||||||
return loads(self.response.decode(encoding))
|
return loads(self.response.decode(encoding))
|
||||||
|
|
||||||
async def release(self):
|
def release(self):
|
||||||
"""Mock release."""
|
"""Mock release."""
|
||||||
|
|
||||||
def raise_for_status(self):
|
def raise_for_status(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user