mirror of
https://github.com/home-assistant/core.git
synced 2026-08-24 23:24:11 +01:00
* Upgrade QBittorrent integration to show torrents This brings the QBittorrent integration to be more in line with the Transmission integration. It updates how the integration is written, along with adding sensors for Active Torrents, Inactive Torrents, Paused Torrents, Total Torrents, Seeding Torrents, Started Torrents. * Remove unused stuff * Correct name in comments * Make get torrents a service with a response * Add new sensors * remove service * Add service with response to get torrents list This adds a service with a response to be able to get the list of torrents within qBittorrent * update * update from rebase * Update strings.json * Update helpers.py * Update to satisfy lint * add func comment * fix lint issues * another update attempt * Fix helpers * Remove unneccesary part in services.yaml and add translations * Fix return * Add tests * Fix test * Improve tests * Fix issue from rebase * Add icon for get_torrents service * Make get torrents a service with a response * remove service * Add service with response to get torrents list This adds a service with a response to be able to get the list of torrents within qBittorrent * Update to satisfy lint * Handle multiple installed integrations * fix lint issue * Set return types for helper methods * Create the service method in async_setup * Add CONFIG_SCHEMA * Add get_all_torrents service * fix lint issues * Add return types and ServiceValidationError(s) * Fix naming * Update translations * Fix tests
90 lines
2.4 KiB
JSON
90 lines
2.4 KiB
JSON
{
|
|
"config": {
|
|
"step": {
|
|
"user": {
|
|
"data": {
|
|
"username": "[%key:common::config_flow::data::username%]",
|
|
"password": "[%key:common::config_flow::data::password%]",
|
|
"url": "[%key:common::config_flow::data::url%]",
|
|
"verify_ssl": "[%key:common::config_flow::data::verify_ssl%]"
|
|
}
|
|
}
|
|
},
|
|
"error": {
|
|
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]",
|
|
"invalid_auth": "[%key:common::config_flow::error::invalid_auth%]"
|
|
},
|
|
"abort": {
|
|
"already_configured": "[%key:common::config_flow::abort::already_configured_device%]"
|
|
}
|
|
},
|
|
"entity": {
|
|
"sensor": {
|
|
"download_speed": {
|
|
"name": "Download speed"
|
|
},
|
|
"upload_speed": {
|
|
"name": "Upload speed"
|
|
},
|
|
"transmission_status": {
|
|
"name": "Status",
|
|
"state": {
|
|
"idle": "[%key:common::state::idle%]",
|
|
"up_down": "Up/Down",
|
|
"seeding": "Seeding",
|
|
"downloading": "Downloading"
|
|
}
|
|
},
|
|
"active_torrents": {
|
|
"name": "Active torrents"
|
|
},
|
|
"inactive_torrents": {
|
|
"name": "Inactive torrents"
|
|
},
|
|
"paused_torrents": {
|
|
"name": "Paused torrents"
|
|
},
|
|
"all_torrents": {
|
|
"name": "All torrents"
|
|
}
|
|
}
|
|
},
|
|
"services": {
|
|
"get_torrents": {
|
|
"name": "Get torrents",
|
|
"description": "Gets a list of current torrents",
|
|
"fields": {
|
|
"device_id": {
|
|
"name": "[%key:common::config_flow::data::device%]",
|
|
"description": "Which service to grab the list from"
|
|
},
|
|
"torrent_filter": {
|
|
"name": "Torrent filter",
|
|
"description": "What kind of torrents you want to return, such as All or Active."
|
|
}
|
|
}
|
|
},
|
|
"get_all_torrents": {
|
|
"name": "Get all torrents",
|
|
"description": "Gets a list of current torrents from all instances of qBittorrent",
|
|
"fields": {
|
|
"torrent_filter": {
|
|
"name": "Torrent filter",
|
|
"description": "What kind of torrents you want to return, such as All or Active."
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"exceptions": {
|
|
"invalid_device": {
|
|
"message": "No device with id {device_id} was found"
|
|
},
|
|
"invalid_entry_id": {
|
|
"message": "No entry with id {device_id} was found"
|
|
},
|
|
"login_error": {
|
|
"message": "A login error occured. Please check you username and password."
|
|
}
|
|
}
|
|
}
|