pyezvizapi 1.0.4.0__py3-none-any.whl → 1.0.4.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 pyezvizapi might be problematic. Click here for more details.
- pyezvizapi/feature.py +19 -0
- {pyezvizapi-1.0.4.0.dist-info → pyezvizapi-1.0.4.1.dist-info}/METADATA +1 -1
- {pyezvizapi-1.0.4.0.dist-info → pyezvizapi-1.0.4.1.dist-info}/RECORD +7 -7
- {pyezvizapi-1.0.4.0.dist-info → pyezvizapi-1.0.4.1.dist-info}/WHEEL +0 -0
- {pyezvizapi-1.0.4.0.dist-info → pyezvizapi-1.0.4.1.dist-info}/licenses/LICENSE +0 -0
- {pyezvizapi-1.0.4.0.dist-info → pyezvizapi-1.0.4.1.dist-info}/licenses/LICENSE.md +0 -0
- {pyezvizapi-1.0.4.0.dist-info → pyezvizapi-1.0.4.1.dist-info}/top_level.txt +0 -0
pyezvizapi/feature.py
CHANGED
|
@@ -122,6 +122,25 @@ def optionals_dict(camera_data: Mapping[str, Any]) -> dict[str, Any]:
|
|
|
122
122
|
return optionals_mapping(camera_data)
|
|
123
123
|
|
|
124
124
|
|
|
125
|
+
def custom_voice_volume_config(camera_data: Mapping[str, Any]) -> dict[str, int] | None:
|
|
126
|
+
"""Return current CustomVoice volume configuration."""
|
|
127
|
+
|
|
128
|
+
optionals = optionals_mapping(camera_data)
|
|
129
|
+
config = optionals.get("CustomVoice_Volume")
|
|
130
|
+
config = decode_json(config)
|
|
131
|
+
if not isinstance(config, Mapping):
|
|
132
|
+
return None
|
|
133
|
+
|
|
134
|
+
volume = coerce_int(config.get("volume"))
|
|
135
|
+
mic = coerce_int(config.get("microphone_volume"))
|
|
136
|
+
result: dict[str, int] = {}
|
|
137
|
+
if isinstance(volume, int):
|
|
138
|
+
result["volume"] = volume
|
|
139
|
+
if isinstance(mic, int):
|
|
140
|
+
result["microphone_volume"] = mic
|
|
141
|
+
return result or None
|
|
142
|
+
|
|
143
|
+
|
|
125
144
|
def iter_algorithm_entries(camera_data: Mapping[str, Any]) -> Iterator[dict[str, Any]]:
|
|
126
145
|
"""Yield entries from the AlgorithmInfo optionals list."""
|
|
127
146
|
|
|
@@ -6,16 +6,16 @@ pyezvizapi/cas.py,sha256=3zHe-_a0KchCmGeAj1of-pV6oMPRUmSCIiDqBFsTK8A,6025
|
|
|
6
6
|
pyezvizapi/client.py,sha256=fJ5_Dw2ZNAko_GHFQ-Lh8TbLcxF4hlXO6k_w28eBE8I,144373
|
|
7
7
|
pyezvizapi/constants.py,sha256=6-AV7BvQPOQkSXrlrdOhnixDEF3eWiectV5jm5DtRSc,13115
|
|
8
8
|
pyezvizapi/exceptions.py,sha256=8rmxEUQdrziqMe-M1SeeRd0HtP2IDQ2xpJVj7wvOQyo,976
|
|
9
|
-
pyezvizapi/feature.py,sha256=
|
|
9
|
+
pyezvizapi/feature.py,sha256=8QeAo6vnIev_ovlDnVvnRbC39Xe6piLgBlFEuFE7qIA,16789
|
|
10
10
|
pyezvizapi/light_bulb.py,sha256=7kuOJmKsmAmE6KGJaUScjrRSTic8IhuToYrMRM-Y76s,7795
|
|
11
11
|
pyezvizapi/models.py,sha256=NQzwTP0yEe2IWU-Vc6nAn87xulpTuo0MX2Rcf0WxifA,4176
|
|
12
12
|
pyezvizapi/mqtt.py,sha256=JGjO-uXdKtLidYN1wEZ_bxEKIlNLmnB82Ziiac6oxWs,22373
|
|
13
13
|
pyezvizapi/test_cam_rtsp.py,sha256=pbuanoKs_Pryt2f5QctHIngzJG1nD6kv8nulQYh2yPc,5162
|
|
14
14
|
pyezvizapi/test_mqtt.py,sha256=gBaurvo2bu-7sOe14AqNouepJHI-tPWzC3WTpDQbvHM,4155
|
|
15
15
|
pyezvizapi/utils.py,sha256=WHGqI0bIy-G4yX6Vs7i_UDrr7dndx3yzbF_z7rDYGKE,13213
|
|
16
|
-
pyezvizapi-1.0.4.
|
|
17
|
-
pyezvizapi-1.0.4.
|
|
18
|
-
pyezvizapi-1.0.4.
|
|
19
|
-
pyezvizapi-1.0.4.
|
|
20
|
-
pyezvizapi-1.0.4.
|
|
21
|
-
pyezvizapi-1.0.4.
|
|
16
|
+
pyezvizapi-1.0.4.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
17
|
+
pyezvizapi-1.0.4.1.dist-info/licenses/LICENSE.md,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
18
|
+
pyezvizapi-1.0.4.1.dist-info/METADATA,sha256=aBfPakdjFSnVKiCtzCGzlA3RO515bTwdU5SDztAkSiw,7609
|
|
19
|
+
pyezvizapi-1.0.4.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
20
|
+
pyezvizapi-1.0.4.1.dist-info/top_level.txt,sha256=gMZTelIi8z7pXyTCQLLaIkxVRrDQ_lS2NEv0WgfHrHs,11
|
|
21
|
+
pyezvizapi-1.0.4.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|