📝 fix: aggregationLevel rejects WEEK — document real enum set #57
Loading…
Reference in a new issue
No description provided.
Delete branch "fix-aggregationlevel-docs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Live-verified against https://energy.comwatt.com on all five
/aggregations/*endpoints (site-networks-ts-time-ago, time-series, site-time-series, top-consumption, consumption-breakdown-time-ago):aggregationLevelacceptsNONE,HOUR,DAY,MONTH,YEAR;WEEK→400 Failed to convert 'aggregationLevel' with value: 'WEEK'timeAgoUnitdiffers:HOUR,DAY,WEEK,MONTH,YEAR(WEEKvalid,NONErejected)Changes
docs/energy.comwatt.com/aggregations.md: fix theaggregationLevelenum row (dropWEEK, reword the SPAscalemapping — the SPA never sendsaggregationLevel=WEEK) and spell out thetimeAgoUnitset instead of the now-false "same asaggregationLevel"comwatt_client/_aggregations.py: document both enums in the docstrings of all five methods takingaggregation_level/time_ago_unittests/test_aggregations.py: replace theWEEKexample value withMONTH(mocked query-string test)ROADMAP.md: tick the field-notes itemCloses ROADMAP item §1 "aggregationLevel does not accept WEEK".
Verification
timeAgoUnitprobe (results in the table above)pytest: 132 passed; only pre-existing environmental failuretest_version_matches_installed_metadata(identical onmain, editable-install metadata)WIP: 📝 fix: aggregationLevel rejects WEEK — document real enum setto 📝 fix: aggregationLevel rejects WEEK — document real enum set