From 35069950237eb6ab1d858fd483cc58a450c482ee Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 13 Mar 2024 08:14:30 -0700 Subject: [PATCH] fix(shipper): update for amazon locker pickup emails (#882) * fix: update for amazon locker pickup emails * formatting --- custom_components/mail_and_packages/const.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/custom_components/mail_and_packages/const.py b/custom_components/mail_and_packages/const.py index bdaa2623..7109bf2d 100644 --- a/custom_components/mail_and_packages/const.py +++ b/custom_components/mail_and_packages/const.py @@ -110,9 +110,13 @@ ) AMAZON_HUB = "amazon_hub" AMAZON_HUB_CODE = "amazon_hub_code" -AMAZON_HUB_EMAIL = ["thehub@amazon.com", "order-update@amazon.com"] +AMAZON_HUB_EMAIL = [ + "thehub@amazon.com", + "order-update@amazon.com", + "amazonlockers@amazon.com", +] AMAZON_HUB_SUBJECT = "ready for pickup from Amazon Hub Locker" -AMAZON_HUB_SUBJECT_SEARCH = "(You have a package to pick up)(.*)(\\d{6})" +AMAZON_HUB_SUBJECT_SEARCH = "(a package to pick up)(.*)(\\d{6})" AMAZON_HUB_BODY = "(Your pickup code is )(\\d{6})" AMAZON_TIME_PATTERN = [ "will arrive:",