Add config flow to qBittorrent (#82560)
* qbittorrent: implement config_flow
Signed-off-by: Chris Xiao <30990835+chrisx8@users.noreply.github.com>
* qbittorrent: add English translations
Signed-off-by: Chris Xiao <30990835+chrisx8@users.noreply.github.com>
* qbittorrent: create sensors with config_flow
Signed-off-by: Chris Xiao <30990835+chrisx8@users.noreply.github.com>
* qbittorrent: set unique_id and icon
Signed-off-by: Chris Xiao <30990835+chrisx8@users.noreply.github.com>
* qbittorrent: add tests for config_flow
Signed-off-by: Chris Xiao <30990835+chrisx8@users.noreply.github.com>
* qbittorrent: detect duplicate config entries
Signed-off-by: Chris Xiao <30990835+chrisx8@users.noreply.github.com>
* qbittorrent: import YAML config
Signed-off-by: Chris Xiao <30990835+chrisx8@users.noreply.github.com>
* qbittorrent: update coveragerc
Signed-off-by: Chris Xiao <30990835+chrisx8@users.noreply.github.com>
* qbittorrent: delete translations file
* create `deprecated_yaml` issue in `setup_platform`
* move qbittorrent test fixtures to conftest.py
* improve code quality & remove wrong unique_id
* keep PLATFORM_SCHEMA until YAML support is removed
* remove CONF_NAME in config entry, fix setup_entry
* improve test suite
* clean up QBittorrentSensor class
* improve user flow tests
* explicit result assertion & minor tweaks in tests
Co-authored-by: epenet <epenet@users.noreply.github.com>
* implement entry unloading
Co-authored-by: epenet <epenet@users.noreply.github.com>
* add type hints
* tweak config_flow data handling
---------
Signed-off-by: Chris Xiao <30990835+chrisx8@users.noreply.github.com>
Co-authored-by: epenet <epenet@users.noreply.github.com>