forked from home-assistant/core
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