Skip to content

fix: evaluate tariff effective dates in eastern time and update documentation - #37

Merged
andrewtryder merged 1 commit into
mainfrom
fix/timezone-and-observability
Sep 12, 2026
Merged

fix: evaluate tariff effective dates in eastern time and update documentation#37
andrewtryder merged 1 commit into
mainfrom
fix/timezone-and-observability

Conversation

@andrewtryder

Copy link
Copy Markdown
Owner

Summary

  • Eastern Time evaluation: Define EVERSOURCE_TIME_ZONE = ZoneInfo("America/New_York") and configure on Territory and TariffSource. Update CT and MA parsers and EversourceClient to evaluate calendar effective dates in Eastern Time rather than the host system's local time (e.g. UTC).
  • Timezone boundary regression tests: Add tests/test_tariff_timezone.py covering 23:59:59 ET and 00:00:01 ET period boundaries as well as UTC host dates.
  • Observability: Add non-sensitive debug logging for tariff refresh start, fetched page status/byte counts, and parsed component details.
  • Documentation: Rewrite docs/hacs-integration-design.md to reflect v0.3.0+ architecture, 4 supported territories, schedules, and timezone contract. Update README.md with data updates and schedules, troubleshooting and debug logging, known limitations, and uninstalling sections.

Verification

  • Pytest: 168 passed, 96.34% coverage (\u226596% required)
  • Ruff: checks and formatting clean across all 52 files
  • Pre-commit: all hooks passed

@andrewtryder
andrewtryder merged commit e0c84cd into main Sep 12, 2026
7 checks passed
@andrewtryder
andrewtryder deleted the fix/timezone-and-observability branch September 12, 2026 01:25
andrewtryder added a commit that referenced this pull request Sep 12, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.3.1](v0.3.0...v0.3.1)
(2026-09-12)


### Bug Fixes

* evaluate tariff effective dates in eastern time and update
documentation
([#37](#37))
([e0c84cd](e0c84cd))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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