uiprotect 5.2.0__py3-none-any.whl → 5.2.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/devices.py CHANGED
@@ -471,6 +471,20 @@ class SmartDetectSettings(ProtectBaseObject):
471
471
  "autoTrackingObjectTypes": convert_smart_types,
472
472
  } | super().unifi_dict_conversions()
473
473
 
474
+ def unifi_dict(
475
+ self,
476
+ data: dict[str, Any] | None = None,
477
+ exclude: set[str] | None = None,
478
+ ) -> dict[str, Any]:
479
+ data = super().unifi_dict(data=data, exclude=exclude)
480
+ if audio_types := data.get("audioTypes"):
481
+ # SMOKE_CMONX is not supported for audio types
482
+ # and should not be sent to the camera
483
+ data["audioTypes"] = [
484
+ t for t in audio_types if t != SmartDetectAudioType.SMOKE_CMONX.value
485
+ ]
486
+ return data
487
+
474
488
 
475
489
  class LCDMessage(ProtectBaseObject):
476
490
  type: DoorbellMessageType
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: uiprotect
3
- Version: 5.2.0
3
+ Version: 5.2.1
4
4
  Summary: Python API for Unifi Protect (Unofficial)
5
5
  Home-page: https://github.com/uilibs/uiprotect
6
6
  Author: UI Protect Maintainers
@@ -17,7 +17,7 @@ uiprotect/data/__init__.py,sha256=OcfuJl2qXfHcj_mdnrHhzZ5tEIZrw8auziX5IE7dn-I,29
17
17
  uiprotect/data/base.py,sha256=J2ytJqWJIsFq7vXYG4gfp2c-mrj5gqa3UhmItF0MWbI,35033
18
18
  uiprotect/data/bootstrap.py,sha256=OSPHu08p7Ys9KqEb8sq_LFufuECtF4lY7OnAYK27ngo,20454
19
19
  uiprotect/data/convert.py,sha256=8h6Il_DhMkPRDPj9F_rA2UZIlTuchS3BQD24peKpk2A,2185
20
- uiprotect/data/devices.py,sha256=aMGxB-6iX9kduYNQj4PKhS1oI76POiXz5gWECEcZCQM,110062
20
+ uiprotect/data/devices.py,sha256=qWHcz2MmdE2JjoVow6DFJFG5EOUcu--rq6uRXO1ta88,110584
21
21
  uiprotect/data/nvr.py,sha256=8M-62AG4q1k71eX-DaFcdO52QWG4zO9X5Voj0Tj9D5A,46598
22
22
  uiprotect/data/types.py,sha256=3CocULpkdTgF4is1nIEDYIlwf2EOkNNM7L4kJ7NkAwM,17654
23
23
  uiprotect/data/user.py,sha256=YvgXJKV4_y-bm0eySWz9f_ie9aR5lpVn17t9H0Pix8I,6998
@@ -30,8 +30,8 @@ uiprotect/test_util/__init__.py,sha256=Ky8mTL61nhp5II2mxTKBAsSGvNqK8U_CfKC5AGwTo
30
30
  uiprotect/test_util/anonymize.py,sha256=f-8ijU-_y9r-uAbhIPn0f0I6hzJpAkvJzc8UpWihObI,8478
31
31
  uiprotect/utils.py,sha256=9ny9-GMn5Fpnxaw9i769VTIDp4ntfgiCCItqJYWepns,19769
32
32
  uiprotect/websocket.py,sha256=D5DZrMzo434ecp8toNxOB5HM193kVwYw42yEcg99yMw,8029
33
- uiprotect-5.2.0.dist-info/LICENSE,sha256=INx18jhdbVXMEiiBANeKEbrbz57ckgzxk5uutmmcxGk,1111
34
- uiprotect-5.2.0.dist-info/METADATA,sha256=vUJTI2o1QhkwEAiIn4DYbAWy36F-a8cJeOFr-IHmLh8,11009
35
- uiprotect-5.2.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
36
- uiprotect-5.2.0.dist-info/entry_points.txt,sha256=J78AUTPrTTxgI3s7SVgrmGqDP7piX2wuuEORzhDdVRA,47
37
- uiprotect-5.2.0.dist-info/RECORD,,
33
+ uiprotect-5.2.1.dist-info/LICENSE,sha256=INx18jhdbVXMEiiBANeKEbrbz57ckgzxk5uutmmcxGk,1111
34
+ uiprotect-5.2.1.dist-info/METADATA,sha256=vRcQPpNodMaeIMJJ3DzBi0ir46vmLkc4HHpIDSKUFvY,11009
35
+ uiprotect-5.2.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
36
+ uiprotect-5.2.1.dist-info/entry_points.txt,sha256=J78AUTPrTTxgI3s7SVgrmGqDP7piX2wuuEORzhDdVRA,47
37
+ uiprotect-5.2.1.dist-info/RECORD,,