This fixes #6. Notably, it fixes it by marking refresh_token as not async, as the session object's refresh_token also isn't async, and so results in HA whinging about "Detecting I/O inside the event loop". This could be fixed by replacing requests with HTTPX and using something like https://docs.authlib.org/en/stable/client/httpx.html
This fixes #6. Notably, it fixes it by marking refresh_token as not async, as the session object's refresh_token also isn't async, and so results in HA whinging about "Detecting I/O inside the event loop". This could be fixed by replacing requests with HTTPX and using something like https://docs.authlib.org/en/stable/client/httpx.html