Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update const.py #1016

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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",
]
Loading