uiprotect 3.8.0__py3-none-any.whl → 4.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of uiprotect might be problematic. Click here for more details.
- uiprotect/data/bootstrap.py +0 -7
- uiprotect/data/devices.py +0 -11
- {uiprotect-3.8.0.dist-info → uiprotect-4.0.0.dist-info}/METADATA +1 -1
- {uiprotect-3.8.0.dist-info → uiprotect-4.0.0.dist-info}/RECORD +7 -7
- {uiprotect-3.8.0.dist-info → uiprotect-4.0.0.dist-info}/LICENSE +0 -0
- {uiprotect-3.8.0.dist-info → uiprotect-4.0.0.dist-info}/WHEEL +0 -0
- {uiprotect-3.8.0.dist-info → uiprotect-4.0.0.dist-info}/entry_points.txt +0 -0
uiprotect/data/bootstrap.py
CHANGED
|
@@ -464,13 +464,6 @@ class Bootstrap(ProtectBaseObject):
|
|
|
464
464
|
if TYPE_CHECKING:
|
|
465
465
|
assert isinstance(obj, Event)
|
|
466
466
|
self.process_event(obj)
|
|
467
|
-
elif model_type is ModelType.CAMERA:
|
|
468
|
-
if TYPE_CHECKING:
|
|
469
|
-
assert isinstance(obj, Camera)
|
|
470
|
-
if "last_ring" in data and (last_ring := obj.last_ring):
|
|
471
|
-
if is_recent := last_ring + RECENT_EVENT_MAX >= utc_now():
|
|
472
|
-
obj.set_ring_timeout()
|
|
473
|
-
_LOGGER.debug("last_ring for %s (%s)", obj.id, is_recent)
|
|
474
467
|
elif model_type is ModelType.SENSOR:
|
|
475
468
|
if TYPE_CHECKING:
|
|
476
469
|
assert isinstance(obj, Sensor)
|
uiprotect/data/devices.py
CHANGED
|
@@ -977,7 +977,6 @@ class Camera(ProtectMotionDeviceModel):
|
|
|
977
977
|
last_smart_detect_event_ids: dict[SmartDetectObjectType, str] = {}
|
|
978
978
|
last_smart_audio_detect_event_ids: dict[SmartDetectAudioType, str] = {}
|
|
979
979
|
talkback_stream: TalkbackStream | None = None
|
|
980
|
-
_last_ring_timeout: datetime | None = PrivateAttr(None)
|
|
981
980
|
|
|
982
981
|
@classmethod
|
|
983
982
|
@cache
|
|
@@ -1845,12 +1844,6 @@ class Camera(ProtectMotionDeviceModel):
|
|
|
1845
1844
|
# endregion
|
|
1846
1845
|
# endregion
|
|
1847
1846
|
|
|
1848
|
-
@property
|
|
1849
|
-
def is_ringing(self) -> bool:
|
|
1850
|
-
if self._last_ring_timeout is None:
|
|
1851
|
-
return False
|
|
1852
|
-
return utc_now() < self._last_ring_timeout
|
|
1853
|
-
|
|
1854
1847
|
@property
|
|
1855
1848
|
def chime_type(self) -> ChimeType:
|
|
1856
1849
|
if self.chime_duration.total_seconds() == 0.3:
|
|
@@ -1935,10 +1928,6 @@ class Camera(ProtectMotionDeviceModel):
|
|
|
1935
1928
|
|
|
1936
1929
|
return False
|
|
1937
1930
|
|
|
1938
|
-
def set_ring_timeout(self) -> None:
|
|
1939
|
-
self._last_ring_timeout = utc_now() + EVENT_PING_INTERVAL
|
|
1940
|
-
self._event_callback_ping()
|
|
1941
|
-
|
|
1942
1931
|
def get_privacy_zone(self) -> tuple[int | None, CameraZone | None]:
|
|
1943
1932
|
for index, zone in enumerate(self.privacy_zones):
|
|
1944
1933
|
if zone.name == PRIVACY_ZONE_NAME:
|
|
@@ -15,9 +15,9 @@ uiprotect/cli/sensors.py,sha256=fQtcDJCVxs4VbAqcavgBy2ABiVxAW3GXtna6_XFBp2k,8153
|
|
|
15
15
|
uiprotect/cli/viewers.py,sha256=2cyrp104ffIvgT0wYGIO0G35QMkEbFe7fSVqLwDXQYQ,2171
|
|
16
16
|
uiprotect/data/__init__.py,sha256=OcfuJl2qXfHcj_mdnrHhzZ5tEIZrw8auziX5IE7dn-I,2938
|
|
17
17
|
uiprotect/data/base.py,sha256=fSD5H3jAp8M-0VbvOsFkohJwbzuUaytQxxF4nbWOVKg,35122
|
|
18
|
-
uiprotect/data/bootstrap.py,sha256=
|
|
18
|
+
uiprotect/data/bootstrap.py,sha256=p7A9YGi2zktgBkVVIVlFh372K2qnlec5Z7wRc8Jd0ps,20598
|
|
19
19
|
uiprotect/data/convert.py,sha256=8h6Il_DhMkPRDPj9F_rA2UZIlTuchS3BQD24peKpk2A,2185
|
|
20
|
-
uiprotect/data/devices.py,sha256=
|
|
20
|
+
uiprotect/data/devices.py,sha256=46qYESXE9gcrtlNn1wuYzIM6We3S_8--KT0xA465JIY,109813
|
|
21
21
|
uiprotect/data/nvr.py,sha256=kPEfFNi_gQHLBEA1JOgTjfnDb6BuPDDjZy6PMzLPR60,46749
|
|
22
22
|
uiprotect/data/types.py,sha256=3CocULpkdTgF4is1nIEDYIlwf2EOkNNM7L4kJ7NkAwM,17654
|
|
23
23
|
uiprotect/data/user.py,sha256=YvgXJKV4_y-bm0eySWz9f_ie9aR5lpVn17t9H0Pix8I,6998
|
|
@@ -30,8 +30,8 @@ uiprotect/test_util/__init__.py,sha256=whiOUb5LfDLNT3AQG6ISiKtAqO2JnhCIdFavhWDK4
|
|
|
30
30
|
uiprotect/test_util/anonymize.py,sha256=f-8ijU-_y9r-uAbhIPn0f0I6hzJpAkvJzc8UpWihObI,8478
|
|
31
31
|
uiprotect/utils.py,sha256=G0WkMXpCky2Cc4jynFDFFxAcVaZX4F01OXKa6cx9pho,20121
|
|
32
32
|
uiprotect/websocket.py,sha256=D5DZrMzo434ecp8toNxOB5HM193kVwYw42yEcg99yMw,8029
|
|
33
|
-
uiprotect-
|
|
34
|
-
uiprotect-
|
|
35
|
-
uiprotect-
|
|
36
|
-
uiprotect-
|
|
37
|
-
uiprotect-
|
|
33
|
+
uiprotect-4.0.0.dist-info/LICENSE,sha256=INx18jhdbVXMEiiBANeKEbrbz57ckgzxk5uutmmcxGk,1111
|
|
34
|
+
uiprotect-4.0.0.dist-info/METADATA,sha256=a16c68d2xebwOqT_oEz0SNVp99Ml9FKYxpB9EmrNcQ4,10969
|
|
35
|
+
uiprotect-4.0.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
36
|
+
uiprotect-4.0.0.dist-info/entry_points.txt,sha256=J78AUTPrTTxgI3s7SVgrmGqDP7piX2wuuEORzhDdVRA,47
|
|
37
|
+
uiprotect-4.0.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|