uiprotect 7.21.0__py3-none-any.whl → 7.21.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.

@@ -3,11 +3,10 @@ from __future__ import annotations
3
3
  import secrets
4
4
  import string
5
5
  import uuid
6
+ import warnings
6
7
  from typing import Any
7
8
  from urllib.parse import urlparse
8
9
 
9
- import typer
10
-
11
10
  from ..data import ModelType
12
11
 
13
12
  object_id_mapping: dict[str, str] = {}
@@ -111,7 +110,7 @@ def anonymize_dict(obj: dict[str, Any], name: str | None = None) -> dict[str, An
111
110
  if obj["modelKey"] in [m.value for m in ModelType]:
112
111
  obj_type = ModelType(obj["modelKey"])
113
112
  else:
114
- typer.secho(f"Unknown modelKey: {obj['modelKey']}", fg="yellow")
113
+ warnings.warn(f"Unknown modelKey: {obj['modelKey']}", stacklevel=2)
115
114
 
116
115
  if obj_type == ModelType.USER:
117
116
  return anonymize_user(obj)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: uiprotect
3
- Version: 7.21.0
3
+ Version: 7.21.1
4
4
  Summary: Python API for Unifi Protect (Unofficial)
5
5
  License: MIT
6
6
  Author: UI Protect Maintainers
@@ -29,11 +29,11 @@ uiprotect/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
29
  uiprotect/release_cache.json,sha256=NamnSFy78hOWY0DPO87J9ELFCAN6NnVquv8gQO75ZG4,386
30
30
  uiprotect/stream.py,sha256=ls65vMOXF4IlJ5axewFITfhcaTh_ihaFeCkCTfhy0Nk,5168
31
31
  uiprotect/test_util/__init__.py,sha256=O22HGFX5Mb0j9LPzO48tm4ZqZTqGVBHo0jnye2FdT_I,19803
32
- uiprotect/test_util/anonymize.py,sha256=f-8ijU-_y9r-uAbhIPn0f0I6hzJpAkvJzc8UpWihObI,8478
32
+ uiprotect/test_util/anonymize.py,sha256=3YG56B6bJcjrfZLWPfmPNlePr88NTvftTvigvPEMxks,8483
33
33
  uiprotect/utils.py,sha256=4EIblOcOxlApiXkI2rwram4SkgiMu_JTDRIZOul83Bc,20749
34
34
  uiprotect/websocket.py,sha256=BedfEVLWhiTP5Il4ULerw2cUNGlr2OLyb_91QOh3iSs,8176
35
- uiprotect-7.21.0.dist-info/LICENSE,sha256=INx18jhdbVXMEiiBANeKEbrbz57ckgzxk5uutmmcxGk,1111
36
- uiprotect-7.21.0.dist-info/METADATA,sha256=WsSYBAGI5vgbYlXIjZ1bEtzgRMEcgBFow6ev6Bs5QEo,11167
37
- uiprotect-7.21.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
38
- uiprotect-7.21.0.dist-info/entry_points.txt,sha256=J78AUTPrTTxgI3s7SVgrmGqDP7piX2wuuEORzhDdVRA,47
39
- uiprotect-7.21.0.dist-info/RECORD,,
35
+ uiprotect-7.21.1.dist-info/LICENSE,sha256=INx18jhdbVXMEiiBANeKEbrbz57ckgzxk5uutmmcxGk,1111
36
+ uiprotect-7.21.1.dist-info/METADATA,sha256=NnrgES3bAbCCgLmYPjSTlg0M0v25syizik4C7yBXmIY,11167
37
+ uiprotect-7.21.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
38
+ uiprotect-7.21.1.dist-info/entry_points.txt,sha256=J78AUTPrTTxgI3s7SVgrmGqDP7piX2wuuEORzhDdVRA,47
39
+ uiprotect-7.21.1.dist-info/RECORD,,