Skip to content

Commit

Permalink
fix(shipper): added Walmart delivering sensor. Added new subject to W…
Browse files Browse the repository at this point in the history
…almart delivered. (#884)

* Added Walmart Delivering Sensor. Added new Subject to Walmart Delivered sensor array.

* fix(shipper): added Walmart delivering sensor. Added new subject to Walmart delivered.
  • Loading branch information
skewll authored Apr 4, 2024
1 parent 3506995 commit eec5065
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions custom_components/mail_and_packages/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,15 +551,23 @@
},
"intelcom_tracking": {"pattern": ["INTLCMD[0-9]{9}"]},
# Walmart
"walmart_delivering": {
"email": ["[email protected]"],
"subject": ["Out for delivery"],
},
"walmart_delivered": {
"email": ["[email protected]"],
"subject": ["Your order was delivered", "Some of your items were delivered"],
"subject": [
"Your order was delivered",
"Some of your items were delivered",
"Delivered: items from order",
],
},
"walmart_exception": {
"email": ["[email protected]"],
"subject": ["delivery is delayed"],
},
"walmart_tracking": {"pattern": ["#[0-9]{7}-[0-9]{7}"]},
"walmart_tracking": {"pattern": ["#[0-9]{7}-[0-9]{7,8}"]},
# BuildingLink
"buildinglink_delivered": {
"email": ["[email protected]"],
Expand Down Expand Up @@ -998,6 +1006,12 @@
key="intelcom_packages",
),
# Walmart
"walmart_delivering": SensorEntityDescription(
name="Mail Walmart Delivering",
native_unit_of_measurement="package(s)",
icon="mdi:truck-delivery",
key="walmart_delivering",
),
"walmart_delivered": SensorEntityDescription(
name="Mail Walmart Delivered",
native_unit_of_measurement="package(s)",
Expand Down

0 comments on commit eec5065

Please sign in to comment.