Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions homeassistant/components/qbittorrent/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
entry.data[CONF_VERIFY_SSL],
)
except LoginRequired as err:
_LOGGER.error("Invalid credentials")
raise ConfigEntryNotReady from err
raise ConfigEntryNotReady("Invalid credentials") from err
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: is there a plan to implement reauth?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not at this moment, but I'll look into it when I have more time.

except RequestException as err:
_LOGGER.error("Failed to connect")
raise ConfigEntryNotReady from err
raise ConfigEntryNotReady("Failed to connect") from err

await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
return True
Expand Down