Skip to content

Commit 8d06ea1

Browse files
committed
Updated initialize
1 parent b8da26f commit 8d06ea1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

crownstone_cloud/lib/cloud.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ def __del__(self):
3333

3434
async def initialize(self) -> None:
3535
"""Async initialize the cloud data"""
36-
await self.login()
36+
if RequestHandler.access_token is None:
37+
await self.login()
3738
await self.sync()
3839

3940
def initialize_sync(self) -> None:

0 commit comments

Comments
 (0)