hass-core/homeassistant/components/qbittorrent
Arun Philip 8ca3310401
Fix qbittorrent error when torrent count is 0 (#126146)
Fix handling of `NoneType` for torrents in `count_torrents_in_states` function

Added a check to handle cases where the 'torrents' data is None, avoiding a `TypeError` when attempting to get the length of a `NoneType` object. The function now returns 0 if 'torrents' is None, ensuring robust behavior when no torrent data is available.
2024-09-19 10:34:27 +02:00
..
__init__.py
config_flow.py
const.py
coordinator.py
helpers.py
icons.json Update icons.json to new service schema part 3 (#124770) 2024-08-28 13:48:01 +02:00
manifest.json
sensor.py Fix qbittorrent error when torrent count is 0 (#126146) 2024-09-19 10:34:27 +02:00
services.yaml
strings.json Fix qbittorent current_status key in strings.json (#122848) 2024-07-30 15:03:36 +02:00
switch.py