Skip to content

Commit ba6ee6e

Browse files
committed
formatting
1 parent 39e9b4f commit ba6ee6e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

PyTado/token_manager/device_token_manager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ def has_pending_device_data(self) -> bool:
8282
if (
8383
device_data
8484
and FileContent.PENDING_DEVICE in device_data
85-
and datetime.now().timestamp() < datetime.fromisoformat(
85+
and datetime.now().timestamp()
86+
< datetime.fromisoformat(
8687
device_data[FileContent.PENDING_DEVICE]["expires_at"]
8788
).timestamp()
8889
):

PyTado/token_manager/file_token_manager.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ def _load_oauth_data(self) -> None:
7171
data = json_load(f)
7272

7373
if FileContent.REFRESH_TOKEN in data:
74-
self._set_oauth_data(
75-
{"refresh_token": data[FileContent.REFRESH_TOKEN]})
74+
self._set_oauth_data({"refresh_token": data[FileContent.REFRESH_TOKEN]})
7675
else:
7776
self._set_oauth_data(data.get(FileContent.OAUTH_DATA, {}))
7877

0 commit comments

Comments
 (0)