Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
zxdavb committed Aug 20, 2024
1 parent 54f4eaa commit 2d8a394
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/evohomeasync2/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,6 @@ async def cli(

websession, token_manager = _startup(username, password)

ctx.obj[SZ_WEBSESSION] = websession
ctx.obj[SZ_TOKEN_MANAGER] = token_manager

if not cache_tokens:
tokens = {}

Expand All @@ -229,6 +226,9 @@ async def cli(
SZ_REFRESH_TOKEN: token_manager.refresh_token,
}

ctx.obj[SZ_WEBSESSION] = websession
ctx.obj[SZ_TOKEN_MANAGER] = token_manager

ctx.obj[SZ_EVO] = evo = EvohomeClient(
username,
password,
Expand Down

0 comments on commit 2d8a394

Please sign in to comment.