Fix broken token caching for evohome (#122664)

* bugfix token caching
This commit is contained in:
David Bonnes 2024-07-26 21:28:58 +01:00 committed by GitHub
parent c9eb1a2e9c
commit 57554aba57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -141,9 +141,9 @@ class EvoSession:
client_v2._user_account = None # noqa: SLF001
await client_v2.login()
await self.save_auth_tokens()
self.client_v2 = client_v2 # only set attr if authentication succeeded
self.client_v2 = client_v2
await self.save_auth_tokens()
self.client_v1 = ev1.EvohomeClient(
username,