mirror of
https://github.com/home-assistant/core.git
synced 2025-12-25 05:26:47 +00:00
Don't pass in loop (#23984)
* Don't pass in loop * Revert some changes * Lint + Axis revert * reinstate loop * Fix a test * Set loop * Update camera.py * Lint
This commit is contained in:
@@ -71,13 +71,11 @@ class HassIOView(HomeAssistantView):
|
||||
This method is a coroutine.
|
||||
"""
|
||||
read_timeout = _get_timeout(path)
|
||||
hass = request.app['hass']
|
||||
|
||||
data = None
|
||||
headers = _init_header(request)
|
||||
|
||||
try:
|
||||
with async_timeout.timeout(10, loop=hass.loop):
|
||||
with async_timeout.timeout(10):
|
||||
data = await request.read()
|
||||
|
||||
method = getattr(self._websession, request.method.lower())
|
||||
|
||||
Reference in New Issue
Block a user