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

Commit c5999e5

Browse files
committed
add wait_for_code to offline access code
1 parent 095f9b9 commit c5999e5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

seamapi/access_codes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ def create(
244244

245245
if (
246246
wait_for_code
247+
and not is_offline_access_code
247248
and starts_at is not None
248249
and datetime.fromisoformat(starts_at)
249250
> datetime.now() + timedelta(seconds=5)

seamapi/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ class AccessCode:
194194
access_code_id: str
195195
device_id: str
196196
type: str
197-
code: str
197+
code: Optional[str] = None
198198
created_at: str
199199
errors: List[Dict[str, Any]]
200200
warnings: List[Dict[str, Any]]

0 commit comments

Comments
 (0)