File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 ):
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments