Error while setting up platform qbittorrent

Hi, just want to setup the Qbittorrent sensors but found an error in the log and it doest work.
I’m running Home Assistant 0.103.0 and Qbittorrent v4.2.0

Does anyone know what the problem might be?

sensor.yaml:

# QBITTORRENT
- platform: qbittorrent
  url: http://192.168.1.16:8050
  username: !secret qbittorrent_username
  password: !secret qbittorrent_password

Log:

Logboekdetails ( ERROR )
Fri Dec 13 2019 11:44:08 GMT-0800 (Pacific Standard Time)
Error while setting up platform qbittorrent
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/qbittorrent/sensor.py", line 48, in setup_platform
    client = Client(config[CONF_URL])
  File "/usr/local/lib/python3.7/site-packages/qbittorrent/client.py", line 30, in __init__
    """)
RuntimeError: 
                This wrapper only supports qBittorrent applications
                 with version higher than 3.1.x.
                 Please use the latest qBittorrent release.
                ```

The problem looks to be 4.2.0 - others have reported the same problem (and there’s an open issue). Somebody said that downgrading to 4.1.x solves it for now - something about changes to the API in 4.2

2 Likes