Skip to content

Commit

Permalink
more linting
Browse files Browse the repository at this point in the history
  • Loading branch information
firstof9 committed Jul 26, 2024
1 parent cb0aa89 commit 6c3a2a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion custom_components/mail_and_packages/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@
IMAP_SECURITY = ["none", "startTLS", "SSL"]
AMAZON_SENSORS = ["amazon_packages", "amazon_delivered", "amazon_exception"]
_LOGGER = logging.getLogger(__name__)
AMAZON_EMAIL_ERROR = (
"Amazon domain found in email: %s, this may cause errors when searching emails."
)


async def _check_amazon_forwards(forwards: str, domain: str) -> tuple:
Expand All @@ -71,7 +74,7 @@ async def _check_amazon_forwards(forwards: str, domain: str) -> tuple:
# Check for amazon domains
if f"@{domain}" in email:
_LOGGER.error(
"Amazon domain found in email: %s, this may cause errors when searching emails.",
AMAZON_EMAIL_ERROR,
email,
)

Expand Down

0 comments on commit 6c3a2a5

Please sign in to comment.