aioamazondevices 5.0.0__py3-none-any.whl → 5.0.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.
- aioamazondevices/__init__.py +1 -1
- aioamazondevices/api.py +5 -9
- aioamazondevices/const.py +10 -1
- {aioamazondevices-5.0.0.dist-info → aioamazondevices-5.0.1.dist-info}/METADATA +2 -2
- aioamazondevices-5.0.1.dist-info/RECORD +11 -0
- aioamazondevices-5.0.0.dist-info/RECORD +0 -11
- {aioamazondevices-5.0.0.dist-info → aioamazondevices-5.0.1.dist-info}/LICENSE +0 -0
- {aioamazondevices-5.0.0.dist-info → aioamazondevices-5.0.1.dist-info}/WHEEL +0 -0
aioamazondevices/__init__.py
CHANGED
aioamazondevices/api.py
CHANGED
@@ -91,7 +91,6 @@ class AmazonDevice:
|
|
91
91
|
device_type: str
|
92
92
|
device_owner_customer_id: str
|
93
93
|
device_cluster_members: list[str]
|
94
|
-
device_locale: str
|
95
94
|
online: bool
|
96
95
|
serial_number: str
|
97
96
|
software_version: str
|
@@ -431,9 +430,10 @@ class AmazonEchoApi:
|
|
431
430
|
|
432
431
|
content_type: str = resp.headers.get("Content-Type", "")
|
433
432
|
_LOGGER.debug(
|
434
|
-
"Response
|
435
|
-
|
433
|
+
"Response for url %s :\nstatus : %s \
|
434
|
+
\ncontent type: %s ",
|
436
435
|
url,
|
436
|
+
resp.status,
|
437
437
|
content_type,
|
438
438
|
)
|
439
439
|
|
@@ -862,9 +862,6 @@ class AmazonEchoApi:
|
|
862
862
|
method=HTTPMethod.GET,
|
863
863
|
url=f"https://alexa.amazon.{self._domain}{URI_QUERIES[key]}",
|
864
864
|
)
|
865
|
-
_LOGGER.debug("Response URL: %s", raw_resp.url)
|
866
|
-
response_code = raw_resp.status
|
867
|
-
_LOGGER.debug("Response code: |%s|", response_code)
|
868
865
|
|
869
866
|
response_data = await raw_resp.text()
|
870
867
|
json_data = {} if len(response_data) == 0 else await raw_resp.json()
|
@@ -914,7 +911,6 @@ class AmazonEchoApi:
|
|
914
911
|
device_cluster_members=(
|
915
912
|
devices_node["clusterMembers"] or [serial_number]
|
916
913
|
),
|
917
|
-
device_locale=preferences_node.get("locale", self._language),
|
918
914
|
online=devices_node["online"],
|
919
915
|
serial_number=serial_number,
|
920
916
|
software_version=devices_node["softwareVersion"],
|
@@ -986,7 +982,7 @@ class AmazonEchoApi:
|
|
986
982
|
base_payload = {
|
987
983
|
"deviceType": device.device_type,
|
988
984
|
"deviceSerialNumber": device.serial_number,
|
989
|
-
"locale":
|
985
|
+
"locale": self._language,
|
990
986
|
"customerId": device.device_owner_customer_id,
|
991
987
|
}
|
992
988
|
|
@@ -1021,7 +1017,7 @@ class AmazonEchoApi:
|
|
1021
1017
|
"expireAfter": "PT5S",
|
1022
1018
|
"content": [
|
1023
1019
|
{
|
1024
|
-
"locale":
|
1020
|
+
"locale": self._language,
|
1025
1021
|
"display": {
|
1026
1022
|
"title": "Home Assistant",
|
1027
1023
|
"body": message_body,
|
aioamazondevices/const.py
CHANGED
@@ -181,6 +181,11 @@ DEVICE_TYPE_TO_MODEL: dict[str, dict[str, str | None]] = {
|
|
181
181
|
"model": "FireTV 4k MAX",
|
182
182
|
"hw_version": "Gen2",
|
183
183
|
},
|
184
|
+
"A1X92YQU8MWAPD": {
|
185
|
+
"manufacturer": "Devialet",
|
186
|
+
"model": "Freebox Delta",
|
187
|
+
"hw_version": None,
|
188
|
+
},
|
184
189
|
"A1XWJRHALS1REP": {
|
185
190
|
"model": "Echo Show 5",
|
186
191
|
"hw_version": "Gen2",
|
@@ -332,7 +337,7 @@ DEVICE_TYPE_TO_MODEL: dict[str, dict[str, str | None]] = {
|
|
332
337
|
"hw_version": None,
|
333
338
|
},
|
334
339
|
"A3RMGO6LYLH7YN": {
|
335
|
-
"model": "Echo
|
340
|
+
"model": "Echo",
|
336
341
|
"hw_version": "Gen4",
|
337
342
|
},
|
338
343
|
"A3S5BH2HU6VAYF": {
|
@@ -364,6 +369,10 @@ DEVICE_TYPE_TO_MODEL: dict[str, dict[str, str | None]] = {
|
|
364
369
|
"model": "Echo",
|
365
370
|
"hw_version": "Gen2",
|
366
371
|
},
|
372
|
+
"ADMKNMEVNL158": {
|
373
|
+
"model": "Echo Hub",
|
374
|
+
"hw_version": "Gen1",
|
375
|
+
},
|
367
376
|
"ADOUDFQX2QVX0": {
|
368
377
|
"model": "Fire TV Omni QLED",
|
369
378
|
"hw_version": None,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: aioamazondevices
|
3
|
-
Version: 5.0.
|
3
|
+
Version: 5.0.1
|
4
4
|
Summary: Python library to control Amazon devices
|
5
5
|
License: Apache-2.0
|
6
6
|
Author: Simone Chemelli
|
@@ -19,6 +19,7 @@ Requires-Dist: orjson
|
|
19
19
|
Requires-Dist: yarl
|
20
20
|
Project-URL: Bug Tracker, https://github.com/chemelli74/aioamazondevices/issues
|
21
21
|
Project-URL: Changelog, https://github.com/chemelli74/aioamazondevices/blob/main/CHANGELOG.md
|
22
|
+
Project-URL: Homepage, https://github.com/chemelli74/aioamazondevices
|
22
23
|
Description-Content-Type: text/markdown
|
23
24
|
|
24
25
|
# aioamazondevices
|
@@ -74,7 +75,6 @@ The script accept command line arguments or a library_test.json config file:
|
|
74
75
|
|
75
76
|
```json
|
76
77
|
{
|
77
|
-
"country": "IT",
|
78
78
|
"email": "<my_address@gmail.com>",
|
79
79
|
"password": "<my_password>",
|
80
80
|
"single_device_name": "Echo Dot Livingroom",
|
@@ -0,0 +1,11 @@
|
|
1
|
+
aioamazondevices/__init__.py,sha256=zxEf-mb1c-kh6QO68aGngvENL1yUrwgmT0SrUqnKgk0,276
|
2
|
+
aioamazondevices/api.py,sha256=YkkMTI8nP1Xop6LtujHXipqEmubnhZ7SBquaU0c2NHs,44709
|
3
|
+
aioamazondevices/const.py,sha256=XI_PvlmyAFtRWko36gaNEzg6JVHJO_i8dIjLzkA6Yo0,11033
|
4
|
+
aioamazondevices/exceptions.py,sha256=JDnSFi_7oEhqK31sHXf0S_cyMoMjiRJuLp4ow7mYgLY,643
|
5
|
+
aioamazondevices/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
+
aioamazondevices/sounds.py,sha256=01pVCDFIuhrLypXInw4JNuHsC6zjMLsuKocet1R6we8,13409
|
7
|
+
aioamazondevices/utils.py,sha256=RzuKRhnq_8ymCoJMoQJ2vBYyuew06RSWpqQWmqdNczE,2019
|
8
|
+
aioamazondevices-5.0.1.dist-info/LICENSE,sha256=sS48k5sp9bFV-NSHDfAJuTZZ_-AP9ZDqUzQ9sffGlsg,11346
|
9
|
+
aioamazondevices-5.0.1.dist-info/METADATA,sha256=WeTMZpknJ0A3oQWhDYMxH-dk2fWNtQi2DoH5H6C2La4,7623
|
10
|
+
aioamazondevices-5.0.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
11
|
+
aioamazondevices-5.0.1.dist-info/RECORD,,
|
@@ -1,11 +0,0 @@
|
|
1
|
-
aioamazondevices/__init__.py,sha256=_1e1-LkSqdyzBCujs3ZMxemVt1D-o_JbNjlozX2fnhs,276
|
2
|
-
aioamazondevices/api.py,sha256=8VMP2-7mChzPWUOV0QVrau2VTsQVwHeINBKZU38k95U,44939
|
3
|
-
aioamazondevices/const.py,sha256=8VxgYN8WiYnBx28rz91vZ4XxDEHyWWW6wMy27jAkTII,10819
|
4
|
-
aioamazondevices/exceptions.py,sha256=JDnSFi_7oEhqK31sHXf0S_cyMoMjiRJuLp4ow7mYgLY,643
|
5
|
-
aioamazondevices/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
-
aioamazondevices/sounds.py,sha256=01pVCDFIuhrLypXInw4JNuHsC6zjMLsuKocet1R6we8,13409
|
7
|
-
aioamazondevices/utils.py,sha256=RzuKRhnq_8ymCoJMoQJ2vBYyuew06RSWpqQWmqdNczE,2019
|
8
|
-
aioamazondevices-5.0.0.dist-info/LICENSE,sha256=sS48k5sp9bFV-NSHDfAJuTZZ_-AP9ZDqUzQ9sffGlsg,11346
|
9
|
-
aioamazondevices-5.0.0.dist-info/METADATA,sha256=nM0_S8BKvUlPYmKltY0HFIG5Je98txAUD8YtF47P0C8,7572
|
10
|
-
aioamazondevices-5.0.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
11
|
-
aioamazondevices-5.0.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|