Skip to content

Commit

Permalink
Update const.py
Browse files Browse the repository at this point in the history
Updated to add AliExpress and Temu for tracking
  • Loading branch information
palominovet authored Nov 23, 2024
1 parent b868ed6 commit 9a2af76
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions custom_components/mail_and_packages/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,32 @@
"capost_delivering": {},
"capost_packages": {},
"capost_tracking": {},
# AliExpress
"alie_delivered": {
"email": ["transaction@notice.aliexpress.com"],
"subject": [
"delivery update",
"out for delivery",
"at delivery center",
],
},
"alie_delivering": {},
"alie_packages": {},
"alie_tracking": {},

# Temu
"temu_delivered": {
"email": ["orders@order.temu.com"],
"subject": [
"out-for-delivery notification",
"scheduled to be delivered tomorrow",
"expected delivery date notification",
],
},
"temu_delivering": {},
"temu_packages": {},
"temu_tracking": {},

# DHL
"dhl_delivered": {
"email": [
Expand Down Expand Up @@ -501,6 +527,44 @@
icon="mdi:package-variant-closed",
key="capost_packages",
),
# AliExpress
"alie_delivered": SensorEntityDescription(
name="Mail AliExpress Delivered",
native_unit_of_measurement="package(s)",
icon="mdi:package-variant-closed",
key="alie_delivered",
),
"alie_delivering": SensorEntityDescription(
name="Mail AliExpress Delivering",
native_unit_of_measurement="package(s)",
icon="mdi:truck-delivery",
key="alie_delivering",
),
"alie_packages": SensorEntityDescription(
name="Mail AliExpress Packages",
native_unit_of_measurement="package(s)",
icon="mdi:package-variant-closed",
key="alie_packages",
),
# Temu
"temu_delivered": SensorEntityDescription(
name="Mail Temu Delivered",
native_unit_of_measurement="package(s)",
icon="mdi:package-variant-closed",
key="temu_delivered",
),
"temu_delivering": SensorEntityDescription(
name="Mail Temu Delivering",
native_unit_of_measurement="package(s)",
icon="mdi:truck-delivery",
key="temu_delivering",
),
"temu_packages": SensorEntityDescription(
name="Mail Temu Packages",
native_unit_of_measurement="package(s)",
icon="mdi:package-variant-closed",
key="temu_packages",
),
# DHL
"dhl_delivered": SensorEntityDescription(
name="Mail DHL Delivered",
Expand Down Expand Up @@ -710,4 +774,6 @@
"inpost_pl",
"dpd_com_pl",
"gls",
"alie",
"temu",
]

0 comments on commit 9a2af76

Please sign in to comment.