Skip to content

Add timezone support to consumption requests - #103

Open
dmulcahey wants to merge 3 commits into
bachya:devfrom
dmulcahey:fix/consumption-timezone
Open

dmulcahey wants to merge 3 commits into
bachya:devfrom
dmulcahey:fix/consumption-timezone

Conversation

@dmulcahey

Copy link
Copy Markdown
Contributor

This PR adds an optional timezone parameter to get_consumption_info and forwards it as tz. This allows callers to specify the timezone used for their date boundaries instead of relying on the device’s timezone, which may differ from the caller’s configured timezone.

It also corrects the optional ClientSession annotation and narrows the type before reusing the session to resolve mypy errors.

@codecov

codecov Bot commented Nov 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (1731a75) to head (1718867).

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #103   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           12        12           
  Lines          273       276    +3     
=========================================
+ Hits           273       276    +3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant