uiprotect 7.9.2__py3-none-any.whl → 7.10.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/api.py CHANGED
@@ -615,6 +615,7 @@ class BaseApiClient:
615
615
 
616
616
  async def _read_auth_config(self) -> SimpleCookie | None:
617
617
  """Read auth cookie from config."""
618
+ config: dict[str, Any] = {}
618
619
  try:
619
620
  async with aiofiles.open(self.config_file, "rb") as f:
620
621
  config_data = await f.read()
uiprotect/data/types.py CHANGED
@@ -435,6 +435,7 @@ class VideoMode(str, ValuesEnumMixin, enum.Enum):
435
435
  HOMEKIT = "homekit"
436
436
  SPORT = "sport"
437
437
  SLOW_SHUTTER = "slowShutter"
438
+ LPR_NONE_REFLEX = "lprNoneReflex"
438
439
  # should only be for unadopted devices
439
440
  UNKNOWN = "unknown"
440
441
 
uiprotect/stream.py CHANGED
@@ -19,9 +19,9 @@ if TYPE_CHECKING:
19
19
  _LOGGER = logging.getLogger(__name__)
20
20
 
21
21
  CODEC_TO_ENCODER = {
22
- "aac": "aac",
23
- "opus": "libopus",
24
- "vorbis": "libvorbis",
22
+ "aac": {"encoder": "aac", "format": "adts"},
23
+ "opus": {"encoder": "libopus", "format": "rtp"},
24
+ "vorbis": {"encoder": "libvorbis", "format": "ogg"},
25
25
  }
26
26
 
27
27
 
@@ -149,9 +149,9 @@ class TalkbackStream(FfmpegCommand):
149
149
  cmd = (
150
150
  "-loglevel info -hide_banner "
151
151
  f'{input_args}-i "{content_url}" -vn '
152
- f"-acodec {encoder} -ac {camera.talkback_settings.channels} "
152
+ f"-acodec {encoder['encoder']} -ac {camera.talkback_settings.channels} "
153
153
  f"-ar {camera.talkback_settings.sampling_rate} -b:a {camera.talkback_settings.sampling_rate} -map 0:a "
154
- f'-f adts "udp://{camera.host}:{camera.talkback_settings.bind_port}?bitrate={camera.talkback_settings.sampling_rate}"'
154
+ f'-f {encoder["format"]} "udp://{camera.host}:{camera.talkback_settings.bind_port}?bitrate={camera.talkback_settings.sampling_rate}"'
155
155
  )
156
156
 
157
157
  super().__init__(cmd, ffmpeg_path)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: uiprotect
3
- Version: 7.9.2
3
+ Version: 7.10.1
4
4
  Summary: Python API for Unifi Protect (Unofficial)
5
5
  License: MIT
6
6
  Author: UI Protect Maintainers
@@ -1,7 +1,7 @@
1
1
  uiprotect/__init__.py,sha256=Oz6i1tonIz4QWVnEPkbielJDJ3WQdwZVgYtjY4IwGAQ,636
2
2
  uiprotect/__main__.py,sha256=C_bHCOkv5qj6WMy-6ELoY3Y6HDhLxOa1a30CzmbZhsg,462
3
3
  uiprotect/_compat.py,sha256=HThmb1zQZCEssCxYYbQzFhJq8zYYlVaSnIEZabKc-6U,302
4
- uiprotect/api.py,sha256=1rNElQNITuhXeRAOxLXBS0vIcASvYTxuQOY0FuGwGU8,71606
4
+ uiprotect/api.py,sha256=hfTd_BYyF_B6Ehbe41U99_9CEEAd-eUwLJ0pOpvojV4,71642
5
5
  uiprotect/cli/__init__.py,sha256=B70Zdwq4cdw3wyu39uY0lMkjk5EoWLRIfVncuTOZ4AE,9423
6
6
  uiprotect/cli/aiports.py,sha256=wpEr2w_hY18CGpFiQM2Yc0FiVwG_1l2CzZhZLGNigvI,1576
7
7
  uiprotect/cli/backup.py,sha256=ZiS7RZnJGKI8TJKLW2cOUzkRM8nyTvE5Ov_jZZGtvSM,36708
@@ -21,19 +21,19 @@ 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=CPmqp3wQouTAGQxUDFghCHsYVWEFSrga1Hf2_HmHDgA,47707
24
- uiprotect/data/types.py,sha256=TDZwSKELUN0smXLB8uQkyNsHlB61j2ByijeblEt2Css,19220
24
+ uiprotect/data/types.py,sha256=RDkEsShIv-DOnkDPYnwqL7crS4onoizBSuP2JwShry0,19258
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
28
28
  uiprotect/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
29
  uiprotect/release_cache.json,sha256=NamnSFy78hOWY0DPO87J9ELFCAN6NnVquv8gQO75ZG4,386
30
- uiprotect/stream.py,sha256=LPvh2YZ50bSdSzSowAYJUDVfeLUHXN33E62kunVk6fs,5051
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
33
  uiprotect/utils.py,sha256=5Z30chqnQhQdtD1vabRtZXjBpeiJagL5KDuALQlWxk8,20559
34
34
  uiprotect/websocket.py,sha256=tEyenqblNXHcjWYuf4oRP1E7buNwx6zoECMwpBr-jig,8191
35
- uiprotect-7.9.2.dist-info/LICENSE,sha256=INx18jhdbVXMEiiBANeKEbrbz57ckgzxk5uutmmcxGk,1111
36
- uiprotect-7.9.2.dist-info/METADATA,sha256=ZhqzwbKeutHxMhc7wtSTiJFNffEHXWBkCkKZJ-rY6Js,11108
37
- uiprotect-7.9.2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
38
- uiprotect-7.9.2.dist-info/entry_points.txt,sha256=J78AUTPrTTxgI3s7SVgrmGqDP7piX2wuuEORzhDdVRA,47
39
- uiprotect-7.9.2.dist-info/RECORD,,
35
+ uiprotect-7.10.1.dist-info/LICENSE,sha256=INx18jhdbVXMEiiBANeKEbrbz57ckgzxk5uutmmcxGk,1111
36
+ uiprotect-7.10.1.dist-info/METADATA,sha256=1C9irO8vet8eD1x3spKc00BuMBaiflMimWvqzfJcHU0,11109
37
+ uiprotect-7.10.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
38
+ uiprotect-7.10.1.dist-info/entry_points.txt,sha256=J78AUTPrTTxgI3s7SVgrmGqDP7piX2wuuEORzhDdVRA,47
39
+ uiprotect-7.10.1.dist-info/RECORD,,