From fc06f420b6c4531dd59bfa3db8b53a965409cac0 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 13 Jun 2024 20:09:32 -0500 Subject: [PATCH] fix: use None instead of ... for PrivateAttr (#53) --- src/uiprotect/data/base.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/uiprotect/data/base.py b/src/uiprotect/data/base.py index 7b8c08f3..5a05b5f4 100644 --- a/src/uiprotect/data/base.py +++ b/src/uiprotect/data/base.py @@ -84,7 +84,7 @@ class ProtectBaseObject(BaseModel): * Provides `.unifi_dict` to convert object back into UFP JSON """ - _api: ProtectApiClient = PrivateAttr(...) + _api: ProtectApiClient = PrivateAttr(None) _protect_objs: ClassVar[dict[str, type[ProtectBaseObject]] | None] = None _protect_lists: ClassVar[dict[str, type[ProtectBaseObject]] | None] = None @@ -633,9 +633,9 @@ def unifi_dict( class ProtectModelWithId(ProtectModel): id: str - _update_lock: asyncio.Lock = PrivateAttr(...) - _update_queue: asyncio.Queue[Callable[[], None]] = PrivateAttr(...) - _update_event: asyncio.Event = PrivateAttr(...) + _update_lock: asyncio.Lock = PrivateAttr(None) + _update_queue: asyncio.Queue[Callable[[], None]] = PrivateAttr(None) + _update_event: asyncio.Event = PrivateAttr(None) def __init__(self, **data: Any) -> None: update_lock = data.pop("update_lock", None)