uiprotect 1.15.0__tar.gz → 1.16.0__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.
- {uiprotect-1.15.0 → uiprotect-1.16.0}/PKG-INFO +1 -1
- {uiprotect-1.15.0 → uiprotect-1.16.0}/pyproject.toml +1 -1
- {uiprotect-1.15.0 → uiprotect-1.16.0}/src/uiprotect/data/base.py +10 -16
- {uiprotect-1.15.0 → uiprotect-1.16.0}/LICENSE +0 -0
- {uiprotect-1.15.0 → uiprotect-1.16.0}/README.md +0 -0
- {uiprotect-1.15.0 → uiprotect-1.16.0}/src/uiprotect/__init__.py +0 -0
- {uiprotect-1.15.0 → uiprotect-1.16.0}/src/uiprotect/__main__.py +0 -0
- {uiprotect-1.15.0 → uiprotect-1.16.0}/src/uiprotect/api.py +0 -0
- {uiprotect-1.15.0 → uiprotect-1.16.0}/src/uiprotect/cli/__init__.py +0 -0
- {uiprotect-1.15.0 → uiprotect-1.16.0}/src/uiprotect/cli/backup.py +0 -0
- {uiprotect-1.15.0 → uiprotect-1.16.0}/src/uiprotect/cli/base.py +0 -0
- {uiprotect-1.15.0 → uiprotect-1.16.0}/src/uiprotect/cli/cameras.py +0 -0
- {uiprotect-1.15.0 → uiprotect-1.16.0}/src/uiprotect/cli/chimes.py +0 -0
- {uiprotect-1.15.0 → uiprotect-1.16.0}/src/uiprotect/cli/doorlocks.py +0 -0
- {uiprotect-1.15.0 → uiprotect-1.16.0}/src/uiprotect/cli/events.py +0 -0
- {uiprotect-1.15.0 → uiprotect-1.16.0}/src/uiprotect/cli/lights.py +0 -0
- {uiprotect-1.15.0 → uiprotect-1.16.0}/src/uiprotect/cli/liveviews.py +0 -0
- {uiprotect-1.15.0 → uiprotect-1.16.0}/src/uiprotect/cli/nvr.py +0 -0
- {uiprotect-1.15.0 → uiprotect-1.16.0}/src/uiprotect/cli/sensors.py +0 -0
- {uiprotect-1.15.0 → uiprotect-1.16.0}/src/uiprotect/cli/viewers.py +0 -0
- {uiprotect-1.15.0 → uiprotect-1.16.0}/src/uiprotect/data/__init__.py +0 -0
- {uiprotect-1.15.0 → uiprotect-1.16.0}/src/uiprotect/data/bootstrap.py +0 -0
- {uiprotect-1.15.0 → uiprotect-1.16.0}/src/uiprotect/data/convert.py +0 -0
- {uiprotect-1.15.0 → uiprotect-1.16.0}/src/uiprotect/data/devices.py +0 -0
- {uiprotect-1.15.0 → uiprotect-1.16.0}/src/uiprotect/data/nvr.py +0 -0
- {uiprotect-1.15.0 → uiprotect-1.16.0}/src/uiprotect/data/types.py +0 -0
- {uiprotect-1.15.0 → uiprotect-1.16.0}/src/uiprotect/data/user.py +0 -0
- {uiprotect-1.15.0 → uiprotect-1.16.0}/src/uiprotect/data/websocket.py +0 -0
- {uiprotect-1.15.0 → uiprotect-1.16.0}/src/uiprotect/exceptions.py +0 -0
- {uiprotect-1.15.0 → uiprotect-1.16.0}/src/uiprotect/py.typed +0 -0
- {uiprotect-1.15.0 → uiprotect-1.16.0}/src/uiprotect/release_cache.json +0 -0
- {uiprotect-1.15.0 → uiprotect-1.16.0}/src/uiprotect/stream.py +0 -0
- {uiprotect-1.15.0 → uiprotect-1.16.0}/src/uiprotect/test_util/__init__.py +0 -0
- {uiprotect-1.15.0 → uiprotect-1.16.0}/src/uiprotect/test_util/anonymize.py +0 -0
- {uiprotect-1.15.0 → uiprotect-1.16.0}/src/uiprotect/utils.py +0 -0
- {uiprotect-1.15.0 → uiprotect-1.16.0}/src/uiprotect/websocket.py +0 -0
|
@@ -401,15 +401,12 @@ class ProtectBaseObject(BaseModel):
|
|
|
401
401
|
if not isinstance(value, list):
|
|
402
402
|
return value
|
|
403
403
|
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
if isinstance(item, ProtectBaseObject)
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
items.append(new_item)
|
|
411
|
-
|
|
412
|
-
return items
|
|
404
|
+
return [
|
|
405
|
+
item.unifi_dict()
|
|
406
|
+
if isinstance(item, ProtectBaseObject)
|
|
407
|
+
else klass.construct({}).unifi_dict(data=item) # type: ignore[arg-type]
|
|
408
|
+
for item in value
|
|
409
|
+
]
|
|
413
410
|
|
|
414
411
|
def _unifi_dict_protect_obj_dict(
|
|
415
412
|
self,
|
|
@@ -424,13 +421,10 @@ class ProtectBaseObject(BaseModel):
|
|
|
424
421
|
if not isinstance(value, dict):
|
|
425
422
|
return value
|
|
426
423
|
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
items[obj_key] = obj
|
|
432
|
-
|
|
433
|
-
return items
|
|
424
|
+
return {
|
|
425
|
+
obj_key: obj.unifi_dict() if isinstance(obj, ProtectBaseObject) else obj
|
|
426
|
+
for obj_key, obj in value.items()
|
|
427
|
+
}
|
|
434
428
|
|
|
435
429
|
def unifi_dict(
|
|
436
430
|
self,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|