mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 02:38:10 +02:00
Add transmission info about torrents that is accessible with templating (#27111)
* Add information about current downloads. * Cleanup: add "Torrent Info" state attribute * Add username to codeowners * Rename state_attributes - device_state_attributes. * Fix snakecase keys, use f-strings, remove redundant method. * Access started_torrent_dict directly * Add return None condition * Remove redundancy. * Add missing comma in codeowners list. * Add missing @ to username. * Update CODEOWNERS with script.hassfest. * Remove transmission_downloading, give started_torrents the info. * Confirm changes. * Actually approve changes. * Resolve conflicts. * Remove leftovers from old torrent_info sensor. * Remove get_started_torrent_info method. Old method to display boolean for the removed torrent_info sensor.
This commit is contained in:
committed by
Martin Hjelmare
parent
edcf476408
commit
54342d2a4e
@ -17,6 +17,7 @@ DEFAULT_NAME = "Transmission"
|
||||
DEFAULT_PORT = 9091
|
||||
DEFAULT_SCAN_INTERVAL = 120
|
||||
|
||||
STATE_ATTR_TORRENT_INFO = "torrent_info"
|
||||
ATTR_TORRENT = "torrent"
|
||||
SERVICE_ADD_TORRENT = "add_torrent"
|
||||
|
||||
|
Reference in New Issue
Block a user