✨ Add get_tiles (dashboard tile configuration) #34
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/get-tiles"
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?
Summary
Adds
get_tiles(site_id)→GET /api/tiles?siteId={site_id}.Returns the dashboard tile configuration for a site (which tile of which type —
REAL_TIME/VALUATION/THIRD_PARTY— points at which device). It is configuration only, not live measurement values.Mirrors the existing
get_measure_keysone-liner style and the_request(...)helper (so it inherits timeout + auto-reauth on 401).Tests
tests/test_tiles.py(mirrorstest_measure_keys.py): success (asserts path/api/tiles+siteIdquery param) and error (500 →ComwattAPIError). Full suite: 79 passed;mypyclean.Notes
## Featureslist updated.WIP:) — remove the WIP prefix to mark ready for review.First of two independent slices for recommendation #16 (the other adds
get_device_kinds).WIP: ✨ Add get_tiles (dashboard tile configuration)to ✨ Add get_tiles (dashboard tile configuration)