dvd-dev / hilo

Home Assistant Hilo Integration via HACS
MIT License
122 stars 26 forks source link

Change authentication flow from ROPC to authorization code with PKCE #344

Closed dave-hilo closed 6 months ago

dave-hilo commented 6 months ago

As part of the migration process from config VERSION 1 to VERSION 2, users will see a notification stating that an integration requires reconfiguration. By clicking "Reconfigure", the user will be redirected to Hilo's authentication website. After account linking, everything will work as usual.

A reauthentication process will also happen if access and refresh tokens are both expired.

ic-dev21 commented 6 months ago

@dave-hilo @nlz242 @valleedelisle linting est fait par contre L148 de init.py me tanne, la virgule que black me rajoute j'la sens pas. J'pas assez ferré en python pour savoir si ça va chier.

valleedelisle commented 6 months ago

@dave-hilo @nlz242 @valleedelisle linting est fait par contre L148 de init.py me tanne, la virgule que black me rajoute j'la sens pas. J'pas assez ferré en python pour savoir si ça va chier.

Quand on fait du json, on ne peut pas mettre de virgule sur le dernier item d'un dict, par contre, en python c'est la best practice. Ca évite qu'on oublie d'en mettre une si on rajoute un item.