Conversation
mattiasclaesson
left a comment
There was a problem hiding this comment.
I suppose this change requires your poetry PR first to be checked ok?
c61a568 to
f6394d2
Compare
First of all sorry for the complete silence, it has been a busy year. A corresponding ha-checkwatt change is being prepared. That includes a compatibility adapter for both pyCheckwatt 0.2.11 and this new API. With 0.2.11 it falls back to the existing behavior, once the updated pyCheckwatt is released the new features will be available. Regarding the poetry PR; this is unrelated but I completed it as it was giving inconsistent results. Now each linter follow the same configuration and rules. |
f6394d2 to
86cd11b
Compare
Reduce the number of login requests by persisting the token for reuse on further API requests. The same token is re-used until expiration and then a new token is requested using the refresh token instead of user/pass.
Also improved respect of 429 with backoff implemented.