Skip to content

feat: v1.8.0 release - #83

Merged
jmdevita merged 12 commits into
mainfrom
release/v1.8.0-beta
Apr 21, 2026
Merged

jmdevita merged 12 commits into
mainfrom
release/v1.8.0-beta

Conversation

@jmdevita

Copy link
Copy Markdown
Owner

Summary

Beta tested as v1.8.0-beta.1.

Closes #72, closes #73, closes #80

robbybarnes and others added 12 commits January 20, 2026 18:13
Adds optional language parameter to the add_parcel service, allowing users
to specify the language for delivery information (ISO 639-1 two-letter code).

This addresses issue #70 and aligns with the Parcel App API which supports
an optional 'language' parameter for the add-delivery endpoint.

Changes:
- Added LANGUAGE and DEFAULT_LANGUAGE constants to const.py
- Updated ADD_PARCEL_SCHEMA to include optional language field
- Modified async_add_parcel to include language in API payload
- Added language field to services.yaml
- Added translation strings for language field

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Adds three new attributes to the ActiveShipment sensor to expose delivery
window information when provided by carriers:

- date_expected_end: End of delivery window (for carriers that provide time ranges)
- timestamp_expected: Epoch timestamp for expected delivery (more precise, includes timezone)
- timestamp_expected_end: End of delivery window as epoch timestamp

These attributes are already parsed from the API response and stored in the
Shipment class but were not previously exposed to Home Assistant. This enables
users to create more precise automations based on delivery windows.

Also updates EMPTY_ATTRIBUTES in const.py for consistency.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Update test assertions to include date_expected_end, timestamp_expected,
and timestamp_expected_end attributes that were added to EMPTY_ATTRIBUTES.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Move language field before send_push_confirmation for better UX
as requested in PR review.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Per maintainer feedback:
- Added date_expected_end, timestamp_expected, timestamp_expected_end
  attributes to RecentShipment sensor (matching ActiveShipment)
- Updated recent.json fixture with actual delivery window values
- Updated tests to verify non-None delivery window values
- Added dedicated test_delivery_window_attributes test
- Fixed TypeError handling for timestamp parsing (caught by CodeRabbit)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…12 compatibility for description_placeholders
…dow-attributes' into release/v1.8.0-beta

# Conflicts:
#	tests/test_sensors.py
…ter' into release/v1.8.0-beta

# Conflicts:
#	custom_components/parcelapp/translations/en.json
@jmdevita
jmdevita merged commit bd405a5 into main Apr 21, 2026
8 checks passed
@jmdevita
jmdevita deleted the release/v1.8.0-beta branch April 21, 2026 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants