uiprotect 0.3.8__tar.gz → 0.3.10__tar.gz

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.

Files changed (36) hide show
  1. {uiprotect-0.3.8 → uiprotect-0.3.10}/PKG-INFO +1 -1
  2. {uiprotect-0.3.8 → uiprotect-0.3.10}/pyproject.toml +1 -1
  3. {uiprotect-0.3.8 → uiprotect-0.3.10}/src/uiprotect/data/devices.py +2 -29
  4. {uiprotect-0.3.8 → uiprotect-0.3.10}/src/uiprotect/data/types.py +1 -0
  5. {uiprotect-0.3.8 → uiprotect-0.3.10}/LICENSE +0 -0
  6. {uiprotect-0.3.8 → uiprotect-0.3.10}/README.md +0 -0
  7. {uiprotect-0.3.8 → uiprotect-0.3.10}/src/uiprotect/__init__.py +0 -0
  8. {uiprotect-0.3.8 → uiprotect-0.3.10}/src/uiprotect/__main__.py +0 -0
  9. {uiprotect-0.3.8 → uiprotect-0.3.10}/src/uiprotect/api.py +0 -0
  10. {uiprotect-0.3.8 → uiprotect-0.3.10}/src/uiprotect/cli/__init__.py +0 -0
  11. {uiprotect-0.3.8 → uiprotect-0.3.10}/src/uiprotect/cli/backup.py +0 -0
  12. {uiprotect-0.3.8 → uiprotect-0.3.10}/src/uiprotect/cli/base.py +0 -0
  13. {uiprotect-0.3.8 → uiprotect-0.3.10}/src/uiprotect/cli/cameras.py +0 -0
  14. {uiprotect-0.3.8 → uiprotect-0.3.10}/src/uiprotect/cli/chimes.py +0 -0
  15. {uiprotect-0.3.8 → uiprotect-0.3.10}/src/uiprotect/cli/doorlocks.py +0 -0
  16. {uiprotect-0.3.8 → uiprotect-0.3.10}/src/uiprotect/cli/events.py +0 -0
  17. {uiprotect-0.3.8 → uiprotect-0.3.10}/src/uiprotect/cli/lights.py +0 -0
  18. {uiprotect-0.3.8 → uiprotect-0.3.10}/src/uiprotect/cli/liveviews.py +0 -0
  19. {uiprotect-0.3.8 → uiprotect-0.3.10}/src/uiprotect/cli/nvr.py +0 -0
  20. {uiprotect-0.3.8 → uiprotect-0.3.10}/src/uiprotect/cli/sensors.py +0 -0
  21. {uiprotect-0.3.8 → uiprotect-0.3.10}/src/uiprotect/cli/viewers.py +0 -0
  22. {uiprotect-0.3.8 → uiprotect-0.3.10}/src/uiprotect/data/__init__.py +0 -0
  23. {uiprotect-0.3.8 → uiprotect-0.3.10}/src/uiprotect/data/base.py +0 -0
  24. {uiprotect-0.3.8 → uiprotect-0.3.10}/src/uiprotect/data/bootstrap.py +0 -0
  25. {uiprotect-0.3.8 → uiprotect-0.3.10}/src/uiprotect/data/convert.py +0 -0
  26. {uiprotect-0.3.8 → uiprotect-0.3.10}/src/uiprotect/data/nvr.py +0 -0
  27. {uiprotect-0.3.8 → uiprotect-0.3.10}/src/uiprotect/data/user.py +0 -0
  28. {uiprotect-0.3.8 → uiprotect-0.3.10}/src/uiprotect/data/websocket.py +0 -0
  29. {uiprotect-0.3.8 → uiprotect-0.3.10}/src/uiprotect/exceptions.py +0 -0
  30. {uiprotect-0.3.8 → uiprotect-0.3.10}/src/uiprotect/py.typed +0 -0
  31. {uiprotect-0.3.8 → uiprotect-0.3.10}/src/uiprotect/release_cache.json +0 -0
  32. {uiprotect-0.3.8 → uiprotect-0.3.10}/src/uiprotect/stream.py +0 -0
  33. {uiprotect-0.3.8 → uiprotect-0.3.10}/src/uiprotect/test_util/__init__.py +0 -0
  34. {uiprotect-0.3.8 → uiprotect-0.3.10}/src/uiprotect/test_util/anonymize.py +0 -0
  35. {uiprotect-0.3.8 → uiprotect-0.3.10}/src/uiprotect/utils.py +0 -0
  36. {uiprotect-0.3.8 → uiprotect-0.3.10}/src/uiprotect/websocket.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: uiprotect
3
- Version: 0.3.8
3
+ Version: 0.3.10
4
4
  Summary: Python API for Unifi Protect (Unofficial)
5
5
  Home-page: https://github.com/uilibs/uiprotect
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "uiprotect"
3
- version = "0.3.8"
3
+ version = "0.3.10"
4
4
  description = "Python API for Unifi Protect (Unofficial)"
5
5
  authors = ["UI Protect Maintainers <ui@koston.org>"]
6
6
  license = "MIT"
@@ -1203,11 +1203,6 @@ class Camera(ProtectMotionDeviceModel):
1203
1203
 
1204
1204
  return self.recording_settings.mode is not RecordingMode.NEVER
1205
1205
 
1206
- @property
1207
- def can_manage_recording_setting(self) -> bool:
1208
- """Can this camera manage its own recording settings?"""
1209
- return not self.use_global
1210
-
1211
1206
  @property
1212
1207
  def is_smart_detections_allowed(self) -> bool:
1213
1208
  """Is smart detections allowed for this camera?"""
@@ -1216,11 +1211,6 @@ class Camera(ProtectMotionDeviceModel):
1216
1211
  and self.api.bootstrap.nvr.is_smart_detections_enabled
1217
1212
  )
1218
1213
 
1219
- @property
1220
- def can_manage_smart_detections(self) -> bool:
1221
- """Can this camera manage its own recording settings?"""
1222
- return (not self.use_global) and self.is_smart_detections_allowed
1223
-
1224
1214
  @property
1225
1215
  def is_license_plate_detections_allowed(self) -> bool:
1226
1216
  """Is license plate detections allowed for this camera?"""
@@ -1229,11 +1219,6 @@ class Camera(ProtectMotionDeviceModel):
1229
1219
  and self.api.bootstrap.nvr.is_license_plate_detections_enabled
1230
1220
  )
1231
1221
 
1232
- @property
1233
- def can_manage_license_plate_detections(self) -> bool:
1234
- """Can this camera manage its own license plate settings?"""
1235
- return (not self.use_global) and self.is_license_plate_detections_allowed
1236
-
1237
1222
  @property
1238
1223
  def is_face_detections_allowed(self) -> bool:
1239
1224
  """Is face detections allowed for this camera?"""
@@ -1242,11 +1227,6 @@ class Camera(ProtectMotionDeviceModel):
1242
1227
  and self.api.bootstrap.nvr.is_face_detections_enabled
1243
1228
  )
1244
1229
 
1245
- @property
1246
- def can_manage_face_detections(self) -> bool:
1247
- """Can this camera manage its own face detection settings?"""
1248
- return (not self.use_global) and self.is_face_detections_allowed
1249
-
1250
1230
  @property
1251
1231
  def active_recording_settings(self) -> RecordingSettings:
1252
1232
  """Get active recording settings."""
@@ -1289,7 +1269,6 @@ class Camera(ProtectMotionDeviceModel):
1289
1269
  return (
1290
1270
  self.is_recording_enabled
1291
1271
  and self.active_recording_settings.enable_motion_detection is not False
1292
- and self.can_manage_recording_setting
1293
1272
  )
1294
1273
 
1295
1274
  @property
@@ -1324,9 +1303,7 @@ class Camera(ProtectMotionDeviceModel):
1324
1303
 
1325
1304
  def _is_smart_enabled(self, smart_type: SmartDetectObjectType) -> bool:
1326
1305
  return (
1327
- self.is_recording_enabled
1328
- and smart_type in self.active_smart_detect_types
1329
- and self.can_manage_smart_detections
1306
+ self.is_recording_enabled and smart_type in self.active_smart_detect_types
1330
1307
  )
1331
1308
 
1332
1309
  def _is_smart_detected(self, smart_type: SmartDetectObjectType) -> bool:
@@ -1441,10 +1418,7 @@ class Camera(ProtectMotionDeviceModel):
1441
1418
  Is License Plate Detection available and enabled (camera will produce face license
1442
1419
  plate detection events)?
1443
1420
  """
1444
- return (
1445
- self._is_smart_enabled(SmartDetectObjectType.LICENSE_PLATE)
1446
- and self.is_license_plate_detections_allowed
1447
- )
1421
+ return self._is_smart_enabled(SmartDetectObjectType.LICENSE_PLATE)
1448
1422
 
1449
1423
  @property
1450
1424
  def last_license_plate_detect_event(self) -> Event | None:
@@ -1554,7 +1528,6 @@ class Camera(ProtectMotionDeviceModel):
1554
1528
  audio_type is not None
1555
1529
  and self.is_recording_enabled
1556
1530
  and audio_type in self.active_audio_detect_types
1557
- and self.can_manage_smart_detections
1558
1531
  )
1559
1532
 
1560
1533
  def _is_audio_detected(self, smart_type: SmartDetectObjectType) -> bool:
@@ -305,6 +305,7 @@ class DoorbellMessageType(str, ValuesEnumMixin, enum.Enum):
305
305
  LEAVE_PACKAGE_AT_DOOR = "LEAVE_PACKAGE_AT_DOOR"
306
306
  DO_NOT_DISTURB = "DO_NOT_DISTURB"
307
307
  CUSTOM_MESSAGE = "CUSTOM_MESSAGE"
308
+ IMAGE = "IMAGE"
308
309
 
309
310
 
310
311
  @enum.unique
File without changes
File without changes