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
2 changes: 1 addition & 1 deletion custom_components/ocado/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async def _validate_input(hass: HomeAssistant, data: dict[str, Any]) -> dict[str
_LOGGER.exception("Failed to select imap folder or check")
raise Exception
_LOGGER.debug("Checking the check: %s", check)
if check != ('OK', [b'Success']):
if not check or check[0] != 'OK':
_LOGGER.exception("Check failed")
raise Exception
return {"title": f"Ocado Integration - {data[CONF_EMAIL]}:{data[CONF_IMAP_SERVER]}"}
Expand Down
Loading