mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Add ratio attribute to Transmission torrent info (#143459)
This commit is contained in:
parent
1075ea1220
commit
f72c5ebb76
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user