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 +1 -0
- uiprotect/utils.py +7 -4
- {uiprotect-7.13.0.dist-info → uiprotect-7.14.1.dist-info}/METADATA +1 -1
- {uiprotect-7.13.0.dist-info → uiprotect-7.14.1.dist-info}/RECORD +7 -7
- {uiprotect-7.13.0.dist-info → uiprotect-7.14.1.dist-info}/LICENSE +0 -0
- {uiprotect-7.13.0.dist-info → uiprotect-7.14.1.dist-info}/WHEEL +0 -0
- {uiprotect-7.13.0.dist-info → uiprotect-7.14.1.dist-info}/entry_points.txt +0 -0
uiprotect/data/types.py
CHANGED
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
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
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)
|
|
@@ -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=
|
|
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=
|
|
33
|
+
uiprotect/utils.py,sha256=A2yoNa0qkDKEZOlhrCgaCdu5XI9EVhCPDpwH1Keg8H4,20649
|
|
34
34
|
uiprotect/websocket.py,sha256=tEyenqblNXHcjWYuf4oRP1E7buNwx6zoECMwpBr-jig,8191
|
|
35
|
-
uiprotect-7.
|
|
36
|
-
uiprotect-7.
|
|
37
|
-
uiprotect-7.
|
|
38
|
-
uiprotect-7.
|
|
39
|
-
uiprotect-7.
|
|
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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|