Add some more undocumented bits to schemas

This commit is contained in:
Adam Goldsmith 2024-12-05 13:03:42 -05:00
parent 738038e1f2
commit 2869b181c6
2 changed files with 3 additions and 1 deletions

View File

@ -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):

View File

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