mirror of
https://github.com/home-assistant/core.git
synced 2025-05-25 16:27:07 +00:00

``` 2020-08-07 22:38:10 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.3903193064] local variable 'response' referenced before assignment Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/rest_command/__init__.py", line 115, in async_service_handler async with getattr(websession, method)( File "/usr/local/lib/python3.8/site-packages/aiohttp/client.py", line 1012, in __aenter__ self._resp = await self._coro File "/usr/local/lib/python3.8/site-packages/aiohttp/client.py", line 582, in _request break File "/usr/local/lib/python3.8/site-packages/aiohttp/helpers.py", line 586, in __exit__ raise asyncio.TimeoutError from None asyncio.exceptions.TimeoutError During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 125, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1281, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1316, in _execute_service await handler.func(service_call) File "/usr/src/homeassistant/homeassistant/components/rest_command/__init__.py", line 137, in async_service_handler _LOGGER.warning("Timeout call %s", response.url, exc_info=1) UnboundLocalError: local variable 'response' referenced before assignment ```