2019-09-26 09:14:57 +00:00
|
|
|
"""Constants for the Transmission Bittorent Client component."""
|
|
|
|
DOMAIN = "transmission"
|
|
|
|
|
|
|
|
SENSOR_TYPES = {
|
2019-12-19 10:23:46 +00:00
|
|
|
"active_torrents": ["Active Torrents", "Torrents"],
|
2019-09-26 09:14:57 +00:00
|
|
|
"current_status": ["Status", None],
|
|
|
|
"download_speed": ["Down Speed", "MB/s"],
|
2019-12-19 10:23:46 +00:00
|
|
|
"paused_torrents": ["Paused Torrents", "Torrents"],
|
|
|
|
"total_torrents": ["Total Torrents", "Torrents"],
|
2019-09-26 09:14:57 +00:00
|
|
|
"upload_speed": ["Up Speed", "MB/s"],
|
2019-12-19 10:23:46 +00:00
|
|
|
"completed_torrents": ["Completed Torrents", "Torrents"],
|
|
|
|
"started_torrents": ["Started Torrents", "Torrents"],
|
2019-09-26 09:14:57 +00:00
|
|
|
}
|
|
|
|
SWITCH_TYPES = {"on_off": "Switch", "turtle_mode": "Turtle Mode"}
|
|
|
|
|
|
|
|
DEFAULT_NAME = "Transmission"
|
|
|
|
DEFAULT_PORT = 9091
|
|
|
|
DEFAULT_SCAN_INTERVAL = 120
|
|
|
|
|
2019-10-28 09:20:59 +00:00
|
|
|
STATE_ATTR_TORRENT_INFO = "torrent_info"
|
2019-09-26 09:14:57 +00:00
|
|
|
ATTR_TORRENT = "torrent"
|
|
|
|
SERVICE_ADD_TORRENT = "add_torrent"
|
|
|
|
|
|
|
|
DATA_UPDATED = "transmission_data_updated"
|