core: Home connect integration doesnt update the token

The problem

Everything in the integration works, and the entityes get all the right status… till the token expires and it wont refresh.

Need to restart the integration all days and everything starts working again.

What version of Home Assistant Core has the issue?

core-2022.6.7

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Home Connect

Link to integration documentation on our website

https://www.home-assistant.io/integrations/home_connect/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Token expired.
4 de julho de 2022 19:47:17 – (ALERTA) /usr/local/lib/python3.9/site-packages/homeconnect/api.py

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 3
  • Comments: 16

Most upvoted comments

I see in the source code a refresh_tokens method. So, the token should be refreshed ? So this should be working. Maybe any kind of update that just broke it? I never had this working so i dont know if there was a working version of it. As soon as i started working, i always had the token expired after some time.