nordicopen / pyeasee

Easee EV charger API python library
MIT License
39 stars 11 forks source link

Improved authentication and retry for signalr connection #50

Closed olalid closed 3 years ago

olalid commented 3 years ago

Stop relying on signalcore lib internal retries when disconnected from server and instead restart the connection process. Catch authentication errors when connecting to signalr server and try to refresh token if it fails. Bug in _refresh_token function fixed. User-Agent added. .send() now called from a thread due to potentially blocking.