Releases: RyanMorash/aionatgrid
Releases · RyanMorash/aionatgrid
v0.4.0
Breaking Changes
- Removed non-typed public API methods:
ping(),linked_billing_accounts(),billing_account_info(),energy_usage_costs(),energy_usages(),ami_energy_usages(),realtime_meter_info() - Removed public exports:
GraphQLRequest,GraphQLResponse,RestRequest,RestResponse,StandardQuery, all*_request()helper functions,RealtimeMeterInfo,realtime_meter_info_request, and allextract_*()functions
New Features
- Added
get_ami_energy_usages()typed client method returninglist[AmiEnergyUsage] - Added
AmiEnergyUsageandAmiEnergyUsagesConnectionTypedDict models
Improvements
- All
get_*methods now callexecute()/request_rest()directly instead of going through wrapper methods - Added
Attributesdocumentation to all TypedDict models - Updated Sphinx docs, README, and CLAUDE.md for the simplified typed-only public API
- Replaced stale "scaffold" terminology with "build" across docstrings
Migration
Replace calls to removed methods with their typed equivalents:
| Before | After |
|---|---|
client.linked_billing_accounts() |
client.get_linked_accounts() |
client.billing_account_info(variables=...) |
client.get_billing_account(account_number) |
client.energy_usage_costs(variables=...) |
client.get_energy_usage_costs(account_number, query_date, company_code) |
client.energy_usages(variables=...) |
client.get_energy_usages(account_number, from_month) |
client.ami_energy_usages(variables=...) |
client.get_ami_energy_usages(meter_number, premise_number, ...) |
client.realtime_meter_info(...) |
client.get_interval_reads(premise_number, service_point_number, start_datetime) |
v0.1.0
Initial release
Full Changelog: https://github.com/RyanMorash/aionatgrid/commits/v0.1.0