From 2869b181c6591d908b50735ce04856f3d122ff39 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 5 Dec 2024 13:03:42 -0500 Subject: [PATCH] Add some more undocumented bits to schemas --- src/unifi_access/schemas/_credential.py | 2 ++ src/unifi_access/schemas/_space.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/unifi_access/schemas/_credential.py b/src/unifi_access/schemas/_credential.py index d3cc0b5..356c82a 100644 --- a/src/unifi_access/schemas/_credential.py +++ b/src/unifi_access/schemas/_credential.py @@ -42,6 +42,8 @@ class NfcCard(ForbidExtraBaseModel): """Owner of the NFC card.""" note: str """!!! note "not listed in API docs" """ + nfc_id: str | None = None + """!!! note "not listed in API docs" """ class EnrollNfcCardResponse(ForbidExtraBaseModel): diff --git a/src/unifi_access/schemas/_space.py b/src/unifi_access/schemas/_space.py index 8975d48..74b40cb 100644 --- a/src/unifi_access/schemas/_space.py +++ b/src/unifi_access/schemas/_space.py @@ -78,7 +78,7 @@ class Door(ForbidExtraBaseModel): It can only be used for remote opening if it's bound. !!! note "api doc describes this as a string" """ - door_lock_relay_status: Literal["lock", "unlock"] + door_lock_relay_status: Literal["lock", "unlock", ""] """Door lock status.""" # TODO: convert empty string to None? door_position_status: Literal["open", "close", ""]