From cf7b70dd8c39317a700fdeb96826a503cedc2a01 Mon Sep 17 00:00:00 2001 From: springstan <46536646+springstan@users.noreply.github.com> Date: Sat, 28 Dec 2019 10:09:42 +0100 Subject: [PATCH] Bump python-qbittorrent to 0.4.1 (#30239) --- homeassistant/components/qbittorrent/manifest.json | 4 +--- homeassistant/components/qbittorrent/sensor.py | 2 +- requirements_all.txt | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/qbittorrent/manifest.json b/homeassistant/components/qbittorrent/manifest.json index c41d4ba46d3..2125e8cfe7b 100644 --- a/homeassistant/components/qbittorrent/manifest.json +++ b/homeassistant/components/qbittorrent/manifest.json @@ -2,9 +2,7 @@ "domain": "qbittorrent", "name": "Qbittorrent", "documentation": "https://www.home-assistant.io/integrations/qbittorrent", - "requirements": [ - "python-qbittorrent==0.3.1" - ], + "requirements": ["python-qbittorrent==0.4.1"], "dependencies": [], "codeowners": [] } diff --git a/homeassistant/components/qbittorrent/sensor.py b/homeassistant/components/qbittorrent/sensor.py index 0299277059b..9544d74b1cd 100644 --- a/homeassistant/components/qbittorrent/sensor.py +++ b/homeassistant/components/qbittorrent/sensor.py @@ -107,7 +107,7 @@ class QBittorrentSensor(Entity): def update(self): """Get the latest data from qBittorrent and updates the state.""" try: - data = self.client.sync() + data = self.client.sync_main_data() self._available = True except RequestException: _LOGGER.error("Connection lost") diff --git a/requirements_all.txt b/requirements_all.txt index a9638a1d767..9e123555337 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1601,7 +1601,7 @@ python-nmap==0.6.1 python-pushover==0.4 # homeassistant.components.qbittorrent -python-qbittorrent==0.3.1 +python-qbittorrent==0.4.1 # homeassistant.components.ripple python-ripple-api==0.0.3 -- GitLab