liudger / python-bsblan

Asynchronous Python client for BSB-Lan.
3 stars 2 forks source link

error timeout #336

Closed liudger closed 2 years ago

liudger commented 2 years ago

Describe the bug when starting homeassistant on a slow system a timeout can occur


Logger: homeassistant.components.climate
Source: components/bsblan/climate.py:72
Integration: Climate ([documentation](https://www.home-assistant.io/integrations/climate), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+climate%22))
First occurred: 8:56:25 AM (1 occurrences)
Last logged: 8:56:25 AM

Error while setting up bsblan platform for climate
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/bsblan/bsblan.py", line 73, in _request
    response = await self._session.request(
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 535, in _request
    conn = await self._connector.connect(
  File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 542, in connect
    proto = await self._create_connection(req, traces, timeout)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 907, in _create_connection
    _, proto = await self._create_direct_connection(req, traces, timeout)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 1154, in _create_direct_connection
    hosts = await asyncio.shield(host_resolved)
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/bsblan/bsblan.py", line 81, in _request
    response.raise_for_status()
  File "/usr/local/lib/python3.9/site-packages/async_timeout/__init__.py", line 129, in __aexit__
    self._do_exit(exc_type)
  File "/usr/local/lib/python3.9/site-packages/async_timeout/__init__.py", line 212, in _do_exit
    raise asyncio.TimeoutError
asyncio.exceptions.TimeoutError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/components/bsblan/climate.py", line 72, in async_setup_entry
    info = await bsblan.info()
  File "/usr/local/lib/python3.9/site-packages/bsblan/bsblan.py", line 157, in info
    data = await self._request(params={"Parameter": "6224,6225,6226"})
  File "/usr/local/lib/python3.9/site-packages/bsblan/bsblan.py", line 83, in _request
    raise BSBLanConnectionError(
bsblan.exceptions.BSBLanConnectionError: Timeout occurred while connecting to BSBLan device.
github-actions[bot] commented 2 years ago

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!