mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +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}",
|
"percent_done": f"{torrent.percent_done * 100:.2f}",
|
||||||
"status": torrent.status,
|
"status": torrent.status,
|
||||||
"id": torrent.id,
|
"id": torrent.id,
|
||||||
|
"ratio": torrent.ratio,
|
||||||
}
|
}
|
||||||
with suppress(ValueError):
|
with suppress(ValueError):
|
||||||
info["eta"] = str(torrent.eta)
|
info["eta"] = str(torrent.eta)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user