JohNan / homeassistant-wellbeing

Get the status from your Electrolux devices connected to Wellbeing
MIT License
75 stars 20 forks source link

"Unable to login" after ~48 hours #4

Closed fnurgel closed 3 years ago

fnurgel commented 3 years ago

Hi,

The integration stops working for me after a couple days with this in the log:

2021-05-18 19:30:40 ERROR (MainThread) [custom_components.wellbeing] Unable to login
2021-05-18 19:30:40 ERROR (MainThread) [custom_components.wellbeing] Unable to login
2021-05-18 19:30:40 ERROR (MainThread) [custom_components.wellbeing] Unable to login
2021-05-18 19:30:40 ERROR (MainThread) [custom_components.wellbeing] Unable to login
2021-05-18 19:31:10 ERROR (MainThread) [custom_components.wellbeing] Unable to login
2021-05-18 19:31:10 ERROR (MainThread) [custom_components.wellbeing] Unable to login
2021-05-18 19:31:10 ERROR (MainThread) [custom_components.wellbeing] Unable to login
2021-05-18 19:31:10 ERROR (MainThread) [custom_components.wellbeing] Unable to login

Reloading the integration does nothing, I have to restart HA then it starts working again. Token expiry issue somehow?

rasssta commented 3 years ago

Same for me

eulvik commented 3 years ago

I had the same issue. Error message pointed to api.py#L248. As mentioned above looks like a token expiry issue.

JohNan commented 3 years ago

Thanks for letting me know. I've seen the same issue as well and I am working on a fix. I just haven't had enough spare time to complete it.

Contributions are welcome 😊

JohNan commented 3 years ago

Should be fixed in https://github.com/JohNan/homeassistant-wellbeing/releases/tag/v0.0.2

eulvik commented 3 years ago

I have updated and will monitor if the issue persists.