uiprotect 7.13.0__py3-none-any.whl → 7.14.1__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/types.py CHANGED
@@ -436,6 +436,7 @@ class VideoMode(str, ValuesEnumMixin, enum.Enum):
436
436
  SPORT = "sport"
437
437
  SLOW_SHUTTER = "slowShutter"
438
438
  LPR_NONE_REFLEX = "lprNoneReflex"
439
+ LPR_REFLEX = "lprReflex"
439
440
  # should only be for unadopted devices
440
441
  UNKNOWN = "unknown"
441
442
 
uiprotect/utils.py CHANGED
@@ -237,10 +237,13 @@ def convert_unifi_data(value: Any, field: FieldInfo) -> Any:
237
237
  # cannot do this check too soon because some types cannot be used in isinstance
238
238
  if isinstance(value, type_):
239
239
  return value
240
- # handle edge case for improperly formatted UUIDs
241
- # 00000000-0000-00 0- 000-000000000000
242
- if type_ is UUID and value == _BAD_UUID:
243
- return _EMPTY_UUID
240
+ if type_ is UUID:
241
+ if not value:
242
+ return None
243
+ # handle edge case for improperly formatted UUIDs
244
+ # 00000000-0000-00 0- 000-000000000000
245
+ if value == _BAD_UUID:
246
+ return _EMPTY_UUID
244
247
  if (type_ is IPv4Address) and value == "":
245
248
  return None
246
249
  return type_(value)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: uiprotect
3
- Version: 7.13.0
3
+ Version: 7.14.1
4
4
  Summary: Python API for Unifi Protect (Unofficial)
5
5
  License: MIT
6
6
  Author: UI Protect Maintainers
@@ -21,7 +21,7 @@ uiprotect/data/bootstrap.py,sha256=ddNaKrTprN7Zq0ZE3O_F5whepUh6z9GqyrUWxLyZ0HE,2
21
21
  uiprotect/data/convert.py,sha256=xEN878_hm0HZZCVYGwJSxcSp2as9zpkvsemVIibReOA,2628
22
22
  uiprotect/data/devices.py,sha256=akNyLQKCNI8SiA7oUW1cSvE-IZ9Oav8iv9PfESpjits,115839
23
23
  uiprotect/data/nvr.py,sha256=lRBCKwAw6GhV7NFluouZkZEWln_faAABfYJXMrTGDZI,47772
24
- uiprotect/data/types.py,sha256=Hfm-Y3MSZtFgZ5AvEvhGqJP_YXPgYSUNybheW91RhOc,19284
24
+ uiprotect/data/types.py,sha256=PIf08tkkLzLPu8IHlEfv5Jqy7sdyhcbLkBgoV21Kyv0,19313
25
25
  uiprotect/data/user.py,sha256=Del5LUmt5uCfAQMI9-kl_GaKm085oTLjxmcCrlEKXxc,10526
26
26
  uiprotect/data/websocket.py,sha256=m4EV1Qfh08eKOihy70ycViYgEQpeNSGZQJWdtGIYJDA,6791
27
27
  uiprotect/exceptions.py,sha256=kgn0cRM6lTtgLza09SDa3ZiX6ue1QqHCOogQ4qu6KTQ,965
@@ -30,10 +30,10 @@ uiprotect/release_cache.json,sha256=NamnSFy78hOWY0DPO87J9ELFCAN6NnVquv8gQO75ZG4,
30
30
  uiprotect/stream.py,sha256=ls65vMOXF4IlJ5axewFITfhcaTh_ihaFeCkCTfhy0Nk,5168
31
31
  uiprotect/test_util/__init__.py,sha256=HlQBgIgdtrvT-gQ5OWP92LbgVr_YzsD5NFImLRonUZk,19320
32
32
  uiprotect/test_util/anonymize.py,sha256=f-8ijU-_y9r-uAbhIPn0f0I6hzJpAkvJzc8UpWihObI,8478
33
- uiprotect/utils.py,sha256=5Z30chqnQhQdtD1vabRtZXjBpeiJagL5KDuALQlWxk8,20559
33
+ uiprotect/utils.py,sha256=A2yoNa0qkDKEZOlhrCgaCdu5XI9EVhCPDpwH1Keg8H4,20649
34
34
  uiprotect/websocket.py,sha256=tEyenqblNXHcjWYuf4oRP1E7buNwx6zoECMwpBr-jig,8191
35
- uiprotect-7.13.0.dist-info/LICENSE,sha256=INx18jhdbVXMEiiBANeKEbrbz57ckgzxk5uutmmcxGk,1111
36
- uiprotect-7.13.0.dist-info/METADATA,sha256=tfjdL8uSLRjqEI0NxX_AbRPV5NEP2KTS9EvFdg2b_8g,11109
37
- uiprotect-7.13.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
38
- uiprotect-7.13.0.dist-info/entry_points.txt,sha256=J78AUTPrTTxgI3s7SVgrmGqDP7piX2wuuEORzhDdVRA,47
39
- uiprotect-7.13.0.dist-info/RECORD,,
35
+ uiprotect-7.14.1.dist-info/LICENSE,sha256=INx18jhdbVXMEiiBANeKEbrbz57ckgzxk5uutmmcxGk,1111
36
+ uiprotect-7.14.1.dist-info/METADATA,sha256=FOBzUt9Ec6J9YxRP0HujOO5eN_FaQfEGVVv0wnlmT7A,11109
37
+ uiprotect-7.14.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
38
+ uiprotect-7.14.1.dist-info/entry_points.txt,sha256=J78AUTPrTTxgI3s7SVgrmGqDP7piX2wuuEORzhDdVRA,47
39
+ uiprotect-7.14.1.dist-info/RECORD,,