Closed arandall closed 1 month ago
I made new release candidate with your pr and a few other fixes. Maybe you can test it too before we make this release public. It's working on my end but like to verify with at least one more user.
@yo-han I have tested 2024.3.1-rc1 and attempted to authenticate, everything works correctly.
Thank you!
I tried to give this custom component a go to find that I would continually get a "Malformed access token" message in the log and an "Invalid authentication" message in the UI.
Version: 491418666e52344b11e1745fc4302e19cf1619ca
Putting the following in the UI:
I ended up with this
logindata.json
:Looks like the parameters for the access and refresh tokens are swapped. A simple workaround is to enter the refresh token in the access token field and vice versa.
https://github.com/yo-han/Home-Assistant-Carelink/blob/491418666e52344b11e1745fc4302e19cf1619ca/custom_components/carelink/config_flow.py#L40-L47
https://github.com/yo-han/Home-Assistant-Carelink/blob/491418666e52344b11e1745fc4302e19cf1619ca/custom_components/carelink/api.py#L62-L70