From f82d1c902c82c935530d4403f741cbf528a0f734 Mon Sep 17 00:00:00 2001 From: Bruno Bigras Date: Fri, 21 Oct 2022 16:29:59 -0400 Subject: [PATCH] fix(shippers): Add extra matcher for Canada Post (#733) * Update HACS URL * fix(shippers): Add extra matcher for Canada Post * formatting Co-authored-by: moralmunky Co-authored-by: Sven Serlier <85389871+wrt54g@users.noreply.github.com> Co-authored-by: Chris --- README.md | 2 +- custom_components/mail_and_packages/const.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a5463206..0561d0e5 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ ![GitHub](https://img.shields.io/github/license/moralmunky/Home-Assistant-Mail-And-Packages) ![GitHub Repo stars](https://img.shields.io/github/stars/moralmunky/Home-Assistant-Mail-And-Packages) ![GitHub release (latest by date)](https://img.shields.io/github/v/release/moralmunky/Home-Assistant-Mail-And-Packages) -[![hacs_badge](https://img.shields.io/badge/HACS-Default-orange.svg)](https://github.com/custom-components/hacs) +[![hacs_badge](https://img.shields.io/badge/HACS-Default-orange.svg)](https://github.com/hacs/integration) ![Pytest](https://github.com/moralmunky/Home-Assistant-Mail-And-Packages/workflows/Pytest/badge.svg?branch=master) ![CodeQL](https://github.com/moralmunky/Home-Assistant-Mail-And-Packages/workflows/CodeQL/badge.svg?branch=master) ![Validate with hassfest](https://github.com/moralmunky/Home-Assistant-Mail-And-Packages/workflows/Validate%20with%20hassfest/badge.svg?branch=master) diff --git a/custom_components/mail_and_packages/const.py b/custom_components/mail_and_packages/const.py index 0a7c2f48..1751f5e5 100644 --- a/custom_components/mail_and_packages/const.py +++ b/custom_components/mail_and_packages/const.py @@ -210,7 +210,10 @@ "fedex_tracking": {"pattern": ["\\d{12,20}"]}, # Canada Post "capost_delivered": { - "email": ["donotreply@canadapost.postescanada.ca"], + "email": [ + "donotreply@canadapost.postescanada.ca", + "donotreply-nepasrepondre@notifications.canadapost-postescanada.ca", + ], "subject": [ "Delivery Notification", ],