uiprotect 3.4.0__py3-none-any.whl → 3.5.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/base.py CHANGED
@@ -260,9 +260,7 @@ class ProtectBaseObject(BaseModel):
260
260
  klass: type[ProtectBaseObject],
261
261
  api: ProtectApiClient | None,
262
262
  ) -> list[Any]:
263
- for index, item in enumerate(items):
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 key, value in items.items():
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: uiprotect
3
- Version: 3.4.0
3
+ Version: 3.5.0
4
4
  Summary: Python API for Unifi Protect (Unofficial)
5
5
  Home-page: https://github.com/uilibs/uiprotect
6
6
  Author: UI Protect Maintainers
@@ -14,7 +14,7 @@ uiprotect/cli/nvr.py,sha256=TwxEg2XT8jXAbOqv6gc7KFXELKadeItEDYweSL4_-e8,4260
14
14
  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
- uiprotect/data/base.py,sha256=tICLXfee_TJCsg0bChUAm5aNPBEE9yrXO-oYBVA8IZ4,35249
17
+ uiprotect/data/base.py,sha256=yACpt6l-7Kl3iVp419XX8O1z7196fJN333v03QQn5j4,35146
18
18
  uiprotect/data/bootstrap.py,sha256=EWl8zWo3zSN7HWMTgcoWr3UI9WE62Mi6FJ33DTqWTII,21128
19
19
  uiprotect/data/convert.py,sha256=8h6Il_DhMkPRDPj9F_rA2UZIlTuchS3BQD24peKpk2A,2185
20
20
  uiprotect/data/devices.py,sha256=a5nmOjCry12Lx-4MxJinAh081k2zYn68w7obG2TtT40,109953
@@ -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=3SJFF8qs1Jz8t3mD8qwc1hFSocolFjdXI_v4yVlC7o4,20088
32
32
  uiprotect/websocket.py,sha256=D5DZrMzo434ecp8toNxOB5HM193kVwYw42yEcg99yMw,8029
33
- uiprotect-3.4.0.dist-info/LICENSE,sha256=INx18jhdbVXMEiiBANeKEbrbz57ckgzxk5uutmmcxGk,1111
34
- uiprotect-3.4.0.dist-info/METADATA,sha256=-twF5DMPjRbzEX2jR-FwLRLopq44mZvgizSIH950ZAM,10969
35
- uiprotect-3.4.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
36
- uiprotect-3.4.0.dist-info/entry_points.txt,sha256=J78AUTPrTTxgI3s7SVgrmGqDP7piX2wuuEORzhDdVRA,47
37
- uiprotect-3.4.0.dist-info/RECORD,,
33
+ uiprotect-3.5.0.dist-info/LICENSE,sha256=INx18jhdbVXMEiiBANeKEbrbz57ckgzxk5uutmmcxGk,1111
34
+ uiprotect-3.5.0.dist-info/METADATA,sha256=LKyf29vjZTzQLyzBBJ2XVysi32S-pI3ft1SrN0qizZA,10969
35
+ uiprotect-3.5.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
36
+ uiprotect-3.5.0.dist-info/entry_points.txt,sha256=J78AUTPrTTxgI3s7SVgrmGqDP7piX2wuuEORzhDdVRA,47
37
+ uiprotect-3.5.0.dist-info/RECORD,,