Repository navigation
feat: support dpd.track_parcel for DPD Germany - #38
Merged
peter-mdf merged 1 commit intoNov 30, 2026
Merged
Conversation
Collaborator
|
Thanks @LeszekSwirski! |
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Support
dpd.track_parcelfor DPD Germany (my.dpd.de)Closes #34
Allows
dpd.track_parcelto look up and add parcels by 14-digit parcel number on DPD Germany accounts (countries/de), matching the existing myDPD app (countries/general) action.Summary of changes
countries/de/page.py: Addedis_dataprotection_page,has_without_postcode_control, andis_unknown_parcelhelpers for thedataprotection.aspxpostcode prompt and DPD's unknown-parcel panel.countries/de/session.py: AddedDpdDeSession.async_add_parcel(parcel_number)underself._lock(and refactored_postbackaround_postback_pageto return(final_url, html)). SubmitsbtnHomeTrackYourParcelwithtxtHomeTrackYourParcel, continues throughdataprotection.aspxviabtnWithOutZipCodewithout ever submittingtxtPostcode, and raisesDpdParcelNotFoundErrorwhen DPD reports an unknown parcel orDpdApiError(200)on unexpected/signed-out responses.services.py& translations: Updated_trackto accept eitherentry.runtime_data.clientorentry.runtime_data.de_session(strings.json, all 16translations/*.json, and error message updated accordingly).README.md,ARCHITECTURE.md, andCLAUDE.mdin the same commit without duplicating API wire mechanics.async_get_inbox), and service tests (tests/payloads.py,tests/countries/test_de_page.py,tests/countries/test_de_session.py,tests/test_services.py).Verification
ruff check .,ruff format --check ., andmypy custom_components/dpd: cleanpytest tests/ --cov=custom_components.dpd: 1049 passed, 99% coverage (countries/de/page.py,countries/de/session.py,services.pyat 100%)my.dpd.de(unknown number raisesServiceValidationError; known parcel returns cleanly without submitting a postcode)