uiprotect 3.4.0__tar.gz → 3.5.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-3.4.0 → uiprotect-3.5.0}/PKG-INFO +1 -1
- {uiprotect-3.4.0 → uiprotect-3.5.0}/pyproject.toml +1 -1
- {uiprotect-3.4.0 → uiprotect-3.5.0}/src/uiprotect/data/base.py +2 -6
- {uiprotect-3.4.0 → uiprotect-3.5.0}/LICENSE +0 -0
- {uiprotect-3.4.0 → uiprotect-3.5.0}/README.md +0 -0
- {uiprotect-3.4.0 → uiprotect-3.5.0}/src/uiprotect/__init__.py +0 -0
- {uiprotect-3.4.0 → uiprotect-3.5.0}/src/uiprotect/__main__.py +0 -0
- {uiprotect-3.4.0 → uiprotect-3.5.0}/src/uiprotect/api.py +0 -0
- {uiprotect-3.4.0 → uiprotect-3.5.0}/src/uiprotect/cli/__init__.py +0 -0
- {uiprotect-3.4.0 → uiprotect-3.5.0}/src/uiprotect/cli/backup.py +0 -0
- {uiprotect-3.4.0 → uiprotect-3.5.0}/src/uiprotect/cli/base.py +0 -0
- {uiprotect-3.4.0 → uiprotect-3.5.0}/src/uiprotect/cli/cameras.py +0 -0
- {uiprotect-3.4.0 → uiprotect-3.5.0}/src/uiprotect/cli/chimes.py +0 -0
- {uiprotect-3.4.0 → uiprotect-3.5.0}/src/uiprotect/cli/doorlocks.py +0 -0
- {uiprotect-3.4.0 → uiprotect-3.5.0}/src/uiprotect/cli/events.py +0 -0
- {uiprotect-3.4.0 → uiprotect-3.5.0}/src/uiprotect/cli/lights.py +0 -0
- {uiprotect-3.4.0 → uiprotect-3.5.0}/src/uiprotect/cli/liveviews.py +0 -0
- {uiprotect-3.4.0 → uiprotect-3.5.0}/src/uiprotect/cli/nvr.py +0 -0
- {uiprotect-3.4.0 → uiprotect-3.5.0}/src/uiprotect/cli/sensors.py +0 -0
- {uiprotect-3.4.0 → uiprotect-3.5.0}/src/uiprotect/cli/viewers.py +0 -0
- {uiprotect-3.4.0 → uiprotect-3.5.0}/src/uiprotect/data/__init__.py +0 -0
- {uiprotect-3.4.0 → uiprotect-3.5.0}/src/uiprotect/data/bootstrap.py +0 -0
- {uiprotect-3.4.0 → uiprotect-3.5.0}/src/uiprotect/data/convert.py +0 -0
- {uiprotect-3.4.0 → uiprotect-3.5.0}/src/uiprotect/data/devices.py +0 -0
- {uiprotect-3.4.0 → uiprotect-3.5.0}/src/uiprotect/data/nvr.py +0 -0
- {uiprotect-3.4.0 → uiprotect-3.5.0}/src/uiprotect/data/types.py +0 -0
- {uiprotect-3.4.0 → uiprotect-3.5.0}/src/uiprotect/data/user.py +0 -0
- {uiprotect-3.4.0 → uiprotect-3.5.0}/src/uiprotect/data/websocket.py +0 -0
- {uiprotect-3.4.0 → uiprotect-3.5.0}/src/uiprotect/exceptions.py +0 -0
- {uiprotect-3.4.0 → uiprotect-3.5.0}/src/uiprotect/py.typed +0 -0
- {uiprotect-3.4.0 → uiprotect-3.5.0}/src/uiprotect/release_cache.json +0 -0
- {uiprotect-3.4.0 → uiprotect-3.5.0}/src/uiprotect/stream.py +0 -0
- {uiprotect-3.4.0 → uiprotect-3.5.0}/src/uiprotect/test_util/__init__.py +0 -0
- {uiprotect-3.4.0 → uiprotect-3.5.0}/src/uiprotect/test_util/anonymize.py +0 -0
- {uiprotect-3.4.0 → uiprotect-3.5.0}/src/uiprotect/utils.py +0 -0
- {uiprotect-3.4.0 → uiprotect-3.5.0}/src/uiprotect/websocket.py +0 -0
|
@@ -260,9 +260,7 @@ class ProtectBaseObject(BaseModel):
|
|
|
260
260
|
klass: type[ProtectBaseObject],
|
|
261
261
|
api: ProtectApiClient | None,
|
|
262
262
|
) -> list[Any]:
|
|
263
|
-
|
|
264
|
-
items[index] = cls._clean_protect_obj(item, klass, api)
|
|
265
|
-
return items
|
|
263
|
+
return [cls._clean_protect_obj(item, klass, api) for item in items]
|
|
266
264
|
|
|
267
265
|
@classmethod
|
|
268
266
|
def _clean_protect_obj_dict(
|
|
@@ -271,9 +269,7 @@ class ProtectBaseObject(BaseModel):
|
|
|
271
269
|
klass: type[ProtectBaseObject],
|
|
272
270
|
api: ProtectApiClient | None,
|
|
273
271
|
) -> dict[Any, Any]:
|
|
274
|
-
for
|
|
275
|
-
items[key] = cls._clean_protect_obj(value, klass, api)
|
|
276
|
-
return items
|
|
272
|
+
return {k: cls._clean_protect_obj(v, klass, api) for k, v in items.items()}
|
|
277
273
|
|
|
278
274
|
@classmethod
|
|
279
275
|
@cache
|
|
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
|