feat: add rate limit tracking and public API#148
feat: add rate limit tracking and public API#148banter240 wants to merge 3 commits intoerwindouna:mainfrom
Conversation
erwindouna
left a comment
There was a problem hiding this comment.
Thanks for contributing, here an initial review. :)
b46987b to
2b4e258
Compare
erwindouna
left a comment
There was a problem hiding this comment.
Making solid progress. tadoasync is heavily tested. Would you mind including/updating tests, that way we can ensure we're releasing a solid package. :)
|
So I think, the only thing left are updating the tests. :) |
|
@erwindouna and @banter240 besides the tests, doesn't it make sense to add some kind of example or documentation because why exactly this is usefull or how it can be used? |
It sure does! :) |
|
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. Thank you for your contributions. |
|
Some unresolved conflicts, @banter240. Can you check? :) |
Essential improvements for production use. Rate Limit Support: - Store response headers from API calls - Parse RateLimit headers per IETF draft spec - rate_limit property returning (limit, remaining) tuple - last_headers property for debugging Public API (enables extensions): - session property (get aiohttp ClientSession) - home_id property (get home ID) - access_token property (get OAuth token) - refresh_auth() public method (refresh token) Model Fixes: - ZoneState null nextTimeBlock handling (API sometimes returns null) Breaking Changes: None (only additions and bug fixes) All changes are backward compatible.
Co-authored-by: Erwin Douna <e.douna@gmail.com>
87132f5 to
9f7c9f4
Compare
Essential improvements for production use:
Rate Limit Support (NEW):
Public API (NEW - enables extensions):
Model Fixes:
Breaking Changes: None (only additions and one critical bug fix)
All changes are backward compatible. Existing code works unchanged.
Enables Home Assistant integrations to: