✨ Add get_electricity_price (EDF Tempo calendar / tariff) #37
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/get-electricity-price"
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 a single read-only client method for the EDF Tempo calendar / tariff structure.
get_electricity_price(self, site_id) -> dict→GET /electricityprice?siteId=.tempoSyntheses(per-colour day counts),daily(per-day colour + off-peak/peak windows),tempoSynthesesComplete.Changes
comwatt_client/client.py: newget_electricity_pricemethod (same pattern/style asget_tiles).tests/test_electricity_price.py: success + 500-error tests (mirrorstest_tiles.py, asserts thesiteIdquery param).README.md: one method-list entry.Test plan
pytest— 83 passed (81 baseline + 2 new).mypy comwatt_client— clean.Draft — mark ready when you want it reviewed.
WIP: ✨ Add get_electricity_price (EDF Tempo calendar / tariff)to ✨ Add get_electricity_price (EDF Tempo calendar / tariff)f8af8a7b44f0eddd83b5