Add config flow to qBittorrent#82560
Conversation
|
Hey there @geoffreylagaisse, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
209c731 to
c247aa9
Compare
5a29ae6 to
334b50a
Compare
|
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
Co-authored-by: epenet <epenet@users.noreply.github.com>
Co-authored-by: epenet <epenet@users.noreply.github.com>
epenet
left a comment
There was a problem hiding this comment.
Please address these two recommendations in follow-up PRs
| ) | ||
| except LoginRequired as err: | ||
| _LOGGER.error("Invalid credentials") | ||
| raise ConfigEntryNotReady from err |
There was a problem hiding this comment.
Time to implement reauth flow...
|
|
||
| self._attr_name = f"{client_name} {description.name}" | ||
| self._attr_unique_id = f"{config_entry.entry_id}-{description.key}" | ||
| self._attr_name = f"{config_entry.title} {description.name}" |
There was a problem hiding this comment.
You should now look at adding DeviceInfo and set _attr_has_entity_name accordingly
|
@epenet Thanks a lot for the help ❤️ FYI, the doc PR is still awaiting: home-assistant/home-assistant.io#25028 |
MartinHjelmare
left a comment
There was a problem hiding this comment.
Please address the comments in a new PR. Thanks!
Breaking change
The YAML configuration has been deprecated. Existing YAML configuration will imported into the UI automatically. Once the import succeeds, it's safe to remove the qBittorrent YAML configuration from your
configuration.yamlfile.Proposed change
qbittorrentintegration and add support forconfig_flow.config_flow.CONF_VERIFY_SSLoption defaults toTrue, to preserve the old behavior.CONF_NAMEis optional in YAML. IfCONF_NAMEdoesn't exist in YAML, default to theDEFAULT_NAMEType of change
Additional information
Checklist
black --fast homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all..coveragerc.To help with the load of incoming pull requests: