Skip to content

Commit

Permalink
fix: fixed oopsie with infinite function loop
Browse files Browse the repository at this point in the history
chore: bump version number (v0.0.2 -> v0.0.3)
  • Loading branch information
alryaz committed Jul 7, 2023
1 parent cfd0613 commit 17c1457
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion pik_intercom/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Pik Intercom API"""

__version__ = "0.0.2"
__version__ = "0.0.3"

import json
import random
Expand All @@ -24,11 +24,13 @@
from .iot import *

_LOGGER: Final = logging.getLogger(__name__)

DEFAULT_DEVICE_MODEL: Final = "Python API"
DEFAULT_USER_AGENT: Final = "okhttp/4.9.0"
DEFAULT_CLIENT_APP: Final = "alfred"
DEFAULT_CLIENT_VERSION: Final = "2023.5.1"
DEFAULT_CLIENT_OS: Final = "Android"

_TBaseObject = TypeVar("_TBaseObject", bound=BaseObject)


Expand Down
4 changes: 2 additions & 2 deletions pik_intercom/iot.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class BaseIotCamera(ObjectWithSnapshot, ABC):
snapshot_url: Optional[str] = None

def update_from_dict(self, data: Mapping[str, Any]) -> None:
BaseIotCamera.update_from_dict(self, data)
ObjectWithSnapshot.update_from_dict(self, data)

self.name = data.get("name") or None
self.snapshot_url = data.get("live_snapshot_url") or None
Expand All @@ -116,7 +116,7 @@ class BaseIotCameraWithRTSP(BaseIotCamera, ObjectWithVideo, ABC):
stream_url: Optional[str] = None

def update_from_dict(self, data: Mapping[str, Any]) -> None:
BaseIotCameraWithRTSP.update_from_dict(self, data)
BaseIotCamera.update_from_dict(self, data)
ObjectWithVideo.update_from_dict(self, data)

self.stream_url = data.get("rtsp_url") or None
Expand Down

0 comments on commit 17c1457

Please sign in to comment.