mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 18:28:14 +02:00
Add ratio attribute to Transmission torrent info (#143459)
This commit is contained in:
@ -211,6 +211,7 @@ def _torrents_info_attr(
|
||||
"percent_done": f"{torrent.percent_done * 100:.2f}",
|
||||
"status": torrent.status,
|
||||
"id": torrent.id,
|
||||
"ratio": torrent.ratio,
|
||||
}
|
||||
with suppress(ValueError):
|
||||
info["eta"] = str(torrent.eta)
|
||||
|
Reference in New Issue
Block a user