mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Suppress error for start_torrents toggle (#35799)
This commit is contained in:
parent
2f6ffe7068
commit
544094af21
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user