mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 18:28:14 +02:00
Add config flow to transmission (#26434)
* Add config flow to transmission * Reworked code to add all sensors and switches * applied fixes * final touches * Add tests * fixed tests * fix get_api errors and entities availabilty update * update config_flows.py * fix pylint error * update .coveragerc * add codeowner * add test_options * fixed test_options
This commit is contained in:
committed by
Martin Hjelmare
parent
9b204ad162
commit
82b77c2d29
24
homeassistant/components/transmission/const.py
Normal file
24
homeassistant/components/transmission/const.py
Normal file
@ -0,0 +1,24 @@
|
||||
"""Constants for the Transmission Bittorent Client component."""
|
||||
DOMAIN = "transmission"
|
||||
|
||||
SENSOR_TYPES = {
|
||||
"active_torrents": ["Active Torrents", None],
|
||||
"current_status": ["Status", None],
|
||||
"download_speed": ["Down Speed", "MB/s"],
|
||||
"paused_torrents": ["Paused Torrents", None],
|
||||
"total_torrents": ["Total Torrents", None],
|
||||
"upload_speed": ["Up Speed", "MB/s"],
|
||||
"completed_torrents": ["Completed Torrents", None],
|
||||
"started_torrents": ["Started Torrents", None],
|
||||
}
|
||||
SWITCH_TYPES = {"on_off": "Switch", "turtle_mode": "Turtle Mode"}
|
||||
|
||||
DEFAULT_NAME = "Transmission"
|
||||
DEFAULT_PORT = 9091
|
||||
DEFAULT_SCAN_INTERVAL = 120
|
||||
|
||||
ATTR_TORRENT = "torrent"
|
||||
SERVICE_ADD_TORRENT = "add_torrent"
|
||||
|
||||
DATA_UPDATED = "transmission_data_updated"
|
||||
DATA_TRANSMISSION = "data_transmission"
|
Reference in New Issue
Block a user