Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
feat: Merge pull request #128 from seamapi/wait-for-code-offline-acce…
Browse files Browse the repository at this point in the history
…ss-code

add wait_for_code to offline access code
  • Loading branch information
itelo authored Nov 10, 2023
2 parents 095f9b9 + 38842c4 commit 921eec9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions seamapi/access_codes.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ def create(

if (
wait_for_code
and not is_offline_access_code
and starts_at is not None
and datetime.fromisoformat(starts_at)
> datetime.now() + timedelta(seconds=5)
Expand Down
2 changes: 1 addition & 1 deletion seamapi/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,10 @@ class AccessCode:
access_code_id: str
device_id: str
type: str
code: str
created_at: str
errors: List[Dict[str, Any]]
warnings: List[Dict[str, Any]]
code: Optional[str] = None
starts_at: Optional[str] = None
ends_at: Optional[str] = None
name: Optional[str] = ""
Expand Down

0 comments on commit 921eec9

Please sign in to comment.