forked from home-assistant/core
Suppress error for start_torrents toggle (#35799)
This commit is contained in:
@@ -362,6 +362,8 @@ class TransmissionData:
|
|||||||
|
|
||||||
def start_torrents(self):
|
def start_torrents(self):
|
||||||
"""Start all torrents."""
|
"""Start all torrents."""
|
||||||
|
if len(self.torrents) <= 0:
|
||||||
|
return
|
||||||
self._api.start_all()
|
self._api.start_all()
|
||||||
|
|
||||||
def stop_torrents(self):
|
def stop_torrents(self):
|
||||||
|
Reference in New Issue
Block a user