2019-09-26 09:14:57 +00:00
|
|
|
"""Constants for the Transmission Bittorent Client component."""
|
2020-02-13 16:52:58 +00:00
|
|
|
|
2019-09-26 09:14:57 +00:00
|
|
|
DOMAIN = "transmission"
|
|
|
|
|
|
|
|
SWITCH_TYPES = {"on_off": "Switch", "turtle_mode": "Turtle Mode"}
|
|
|
|
|
2020-04-20 13:07:26 +00:00
|
|
|
DEFAULT_DELETE_DATA = False
|
2019-09-26 09:14:57 +00:00
|
|
|
DEFAULT_NAME = "Transmission"
|
|
|
|
DEFAULT_PORT = 9091
|
|
|
|
DEFAULT_SCAN_INTERVAL = 120
|
|
|
|
|
2019-10-28 09:20:59 +00:00
|
|
|
STATE_ATTR_TORRENT_INFO = "torrent_info"
|
2020-04-20 13:07:26 +00:00
|
|
|
|
|
|
|
ATTR_DELETE_DATA = "delete_data"
|
2019-09-26 09:14:57 +00:00
|
|
|
ATTR_TORRENT = "torrent"
|
2020-04-20 13:07:26 +00:00
|
|
|
|
2019-09-26 09:14:57 +00:00
|
|
|
SERVICE_ADD_TORRENT = "add_torrent"
|
2020-04-20 13:07:26 +00:00
|
|
|
SERVICE_REMOVE_TORRENT = "remove_torrent"
|
2019-09-26 09:14:57 +00:00
|
|
|
|
|
|
|
DATA_UPDATED = "transmission_data_updated"
|
2020-04-20 13:07:26 +00:00
|
|
|
|
|
|
|
EVENT_STARTED_TORRENT = "transmission_started_torrent"
|
|
|
|
EVENT_REMOVED_TORRENT = "transmission_removed_torrent"
|
|
|
|
EVENT_DOWNLOADED_TORRENT = "transmission_downloaded_torrent"
|