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", ""]