SunWEG reauth flow (#105861)

* feat(sunweg): reauth flow

* fix(sunweg): autentication as sunweg 2.1.0

* fix: configflowresult

* chore(sunweg): dedupe code

* chore(sunweg): using entry_id instead of unique_id

* test(sunweg): added test launch reauth flow

* chore(sunweg): moved test_reauth_started test

* chore(sunweg): formatting

* chore(sunweg): formating

---------

Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
Lucas Mindêllo de Andrade 2024-03-28 09:53:32 -03:00 committed by GitHub
parent 596436d679
commit 5fb12c93aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 201 additions and 32 deletions

View file

@ -12,6 +12,7 @@ SUNWEG_USER_INPUT = {
SUNWEG_MOCK_ENTRY = MockConfigEntry(
domain=DOMAIN,
unique_id=0,
data={
CONF_USERNAME: "user@email.com",
CONF_PASSWORD: "password",