custom_components/tracking_numbers/houses the integration:__init__.pywires config entries,coordinator.pyruns the polling loop, andsensor.pyexposes the flat package sensor.parsers/holds retailer modules namedretailer.py; each exportsATTR_*,EMAIL_DOMAIN_*, andparse_*symbols registered inparsers_list.py.services.yaml,strings.json, andtranslations/define Home Assistant services and localized UI copy.
- Constants belong in
const.pyand use upper snake case; parser helpers should reuse shared regex such asusps_regex,fedex_regex, andups_regex. - Parser changes must be additive—extend conditions without regressing legacy behavior unless maintainers explicitly request a rewrite.
- Reference
email.logwhen asked to create or adjust parsers; sanitize personal data before sharing snippets externally.