Skip to content

Liebherr authentication timeout #183021

Description

@jschlyter

The problem

The Liebherr integration authentication sometimes requests reauthentication even though the API key is still valid. Re-entering the very same API key fixes the issue, so it seems it's not handling errors correctly.

What version of Home Assistant Core has the issue?

2026.9.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

liebherr

Link to integration documentation on our website

No response

Diagnostics information

2026-09-24 04:07:08.688 ERROR (MainThread) [homeassistant.components.liebherr] Unexpected error scanning for new devices
Traceback (most recent call last):
  File "/usr/local/lib/python3.14/site-packages/aiohttp/client_reqrep.py", line 558, in start
    message, payload = await protocol.read()  # type: ignore[union-attr]
                       ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/site-packages/aiohttp/streams.py", line 705, in read
    await self._waiter
asyncio.exceptions.CancelledError

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

Traceback (most recent call last):
  File "/usr/local/lib/python3.14/site-packages/pyliebherrhomeapi/client.py", line 196, in _request
    async with session.request(
               ~~~~~~~~~~~~~~~^
        method,
        ^^^^^^^
    ...<4 lines>...
        timeout=aiohttp.ClientTimeout(total=self._timeout),
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ) as response:
    ^
  File "/usr/local/lib/python3.14/site-packages/aiohttp/client.py", line 1693, in __aenter__
    self._resp: _RetType_co = await self._coro
                              ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/site-packages/aiohttp/client.py", line 858, in _request
    resp = await handler(req)
           ^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/site-packages/aiohttp/client_middlewares.py", line 36, in single_middleware_handler
    return await middleware(req, handler)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/aiohttp_client.py", line 70, in _ssrf_redirect_middleware
    resp = await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/site-packages/aiohttp/client.py", line 836, in _connect_and_send_request
    await resp.start(conn)
  File "/usr/local/lib/python3.14/site-packages/aiohttp/client_reqrep.py", line 553, in start
    with self._timer:
         ^^^^^^^^^^^
  File "/usr/local/lib/python3.14/site-packages/aiohttp/helpers.py", line 759, in __exit__
    raise asyncio.TimeoutError from exc_val
TimeoutError

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

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/liebherr/__init__.py", line 85, in _async_scan_for_new_devices
    devices = await client.get_devices()
              ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/site-packages/pyliebherrhomeapi/client.py", line 324, in get_devices
    response = await self._request("GET", "devices")
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/site-packages/pyliebherrhomeapi/client.py", line 277, in _request
    raise LiebherrTimeoutError("Request timed out") from ex
pyliebherrhomeapi.exceptions.LiebherrTimeoutError: Request timed out

Example YAML snippet

Anything in the logs that might be useful for us?

Additional information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions