diff --git a/homeassistant/components/qbittorrent/manifest.json b/homeassistant/components/qbittorrent/manifest.json index c41d4ba46d362f67d81134782bc543460b8a6616..2125e8cfe7b38d56ffc761e5fe5f872c9bf933a6 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 0299277059b484b50e47b5f7c715bc2e8211f690..9544d74b1cde5e8b80a782c407cd284ab950fa66 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 a9638a1d767e7548fc5b82c0da99593995b3a65f..9e12355533756abbe9f5d071b7fdb6865241020e 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