HomeAssistant-Mods / home-assistant-miele-OLD-FORK-DO-NOT-USE

Home Assistant support for Miele@home connected appliances
14 stars 5 forks source link

Async refresh token #9

Closed palfrey closed 3 years ago

palfrey commented 4 years ago

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

kloknibor commented 3 years ago

Sorry for the late reply, apearantly don't get notifications of this project. I ''l review your PR 👍