Skip to content

Conversation

niekschoemaker
Copy link

This should increase the reliability in case haier ever decides to change the expiration time.

I also added a check for the token expires soon in the refresh_token call, this should avoid unecessary login calls (before this patch there were around 40 login calls while using the example code from the readme, so simply requesting the info)

And furthermore increased the clarity for the logging of enum errors.

This makes the exception a bit clearer on which property exactly has the incorrect value
This should increase the realiability of re-using tokens in case the expiration date changes on Haier's side
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant