aioamazondevices 3.1.13__py3-none-any.whl → 3.1.17rc1__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 +4 -3
- aioamazondevices/const.py +32 -1
- {aioamazondevices-3.1.13.dist-info → aioamazondevices-3.1.17rc1.dist-info}/METADATA +3 -8
- aioamazondevices-3.1.17rc1.dist-info/RECORD +10 -0
- aioamazondevices-3.1.13.dist-info/RECORD +0 -10
- {aioamazondevices-3.1.13.dist-info → aioamazondevices-3.1.17rc1.dist-info}/LICENSE +0 -0
- {aioamazondevices-3.1.13.dist-info → aioamazondevices-3.1.17rc1.dist-info}/WHEEL +0 -0
aioamazondevices/__init__.py
CHANGED
aioamazondevices/api.py
CHANGED
@@ -16,8 +16,8 @@ from urllib.parse import parse_qs, urlencode
|
|
16
16
|
|
17
17
|
import orjson
|
18
18
|
from aiohttp import ClientConnectorError, ClientResponse, ClientSession
|
19
|
-
from babel import Locale
|
20
19
|
from bs4 import BeautifulSoup, Tag
|
20
|
+
from langcodes import Language
|
21
21
|
from multidict import CIMultiDictProxy, MultiDictProxy
|
22
22
|
from yarl import URL
|
23
23
|
|
@@ -819,8 +819,9 @@ class AmazonEchoApi:
|
|
819
819
|
message_source: AmazonMusicSource | None = None,
|
820
820
|
) -> None:
|
821
821
|
"""Send message to specific device."""
|
822
|
-
|
823
|
-
|
822
|
+
lang_object = Language.make(territory=self._login_country_code.upper())
|
823
|
+
lang_maximized = lang_object.maximize()
|
824
|
+
locale = f"{lang_maximized.language}-{lang_maximized.region}"
|
824
825
|
|
825
826
|
if not self._login_stored_data:
|
826
827
|
_LOGGER.warning("Trying to send message before login")
|
aioamazondevices/const.py
CHANGED
@@ -19,6 +19,9 @@ DOMAIN_BY_ISO3166_COUNTRY = {
|
|
19
19
|
"domain": "com.au",
|
20
20
|
"openid.assoc_handle": DEFAULT_ASSOC_HANDLE,
|
21
21
|
},
|
22
|
+
"be": {
|
23
|
+
"domain": "com.be",
|
24
|
+
},
|
22
25
|
"br": {
|
23
26
|
"domain": "com.br",
|
24
27
|
},
|
@@ -36,6 +39,9 @@ DOMAIN_BY_ISO3166_COUNTRY = {
|
|
36
39
|
"domain": "com.au",
|
37
40
|
"openid.assoc_handle": DEFAULT_ASSOC_HANDLE,
|
38
41
|
},
|
42
|
+
"tr": {
|
43
|
+
"domain": "com.tr",
|
44
|
+
},
|
39
45
|
"us": {
|
40
46
|
"domain": "com",
|
41
47
|
"openid.assoc_handle": DEFAULT_ASSOC_HANDLE,
|
@@ -109,7 +115,8 @@ SPEAKER_GROUP_FAMILY = "WHA"
|
|
109
115
|
SPEAKER_GROUP_MODEL = "Speaker Group"
|
110
116
|
|
111
117
|
DEVICE_TO_IGNORE: list[str] = [
|
112
|
-
AMAZON_DEVICE_TYPE, # Alexa App for
|
118
|
+
AMAZON_DEVICE_TYPE, # Alexa App for iOS
|
119
|
+
"A2TF17PFR55MTB", # Alexa App for Android
|
113
120
|
"A1RTAM01W29CUP", # Alexa App for PC
|
114
121
|
]
|
115
122
|
|
@@ -134,6 +141,10 @@ DEVICE_TYPE_TO_MODEL: dict[str, dict[str, str | None]] = {
|
|
134
141
|
"model": "Echo Show 15",
|
135
142
|
"hw_version": "Gen1",
|
136
143
|
},
|
144
|
+
"A1NL4BVLQ4L3N3": {
|
145
|
+
"model": "Echo Show",
|
146
|
+
"hw_version": "Gen1",
|
147
|
+
},
|
137
148
|
"A1Q6UGEXJZWJQ0": {
|
138
149
|
"model": "Fire TV Stick 4K",
|
139
150
|
"hw_version": "Gen2",
|
@@ -159,6 +170,10 @@ DEVICE_TYPE_TO_MODEL: dict[str, dict[str, str | None]] = {
|
|
159
170
|
"model": "FireTV 4k MAX",
|
160
171
|
"hw_version": "Gen2",
|
161
172
|
},
|
173
|
+
"A1XWJRHALS1REP": {
|
174
|
+
"model": "Echo Show 5",
|
175
|
+
"hw_version": "Gen2",
|
176
|
+
},
|
162
177
|
"A1Z88NGR2BK6A2": {
|
163
178
|
"model": "Echo Show 8",
|
164
179
|
"hw_version": "Gen1",
|
@@ -191,10 +206,18 @@ DEVICE_TYPE_TO_MODEL: dict[str, dict[str, str | None]] = {
|
|
191
206
|
"model": "Fire TV Stick",
|
192
207
|
"hw_version": "Gen2",
|
193
208
|
},
|
209
|
+
"A2M35JJZWCQOMZ": {
|
210
|
+
"model": "Echo Plus",
|
211
|
+
"hw_version": "Gen1",
|
212
|
+
},
|
194
213
|
"A2M4YX06LWP8WI": {
|
195
214
|
"model": "Fire Tablet 7",
|
196
215
|
"hw_version": "Gen5",
|
197
216
|
},
|
217
|
+
"A2N49KXGVA18AR": {
|
218
|
+
"model": "Fire HD 10 Plus",
|
219
|
+
"hw_version": "Gen11",
|
220
|
+
},
|
198
221
|
"A2U21SRK4QGSE1": {
|
199
222
|
"model": "Echo Dot",
|
200
223
|
"hw_version": "Gen4",
|
@@ -244,6 +267,10 @@ DEVICE_TYPE_TO_MODEL: dict[str, dict[str, str | None]] = {
|
|
244
267
|
"model": "Sonos Beam",
|
245
268
|
"hw_version": None,
|
246
269
|
},
|
270
|
+
"A3RBAYBE7VM004": {
|
271
|
+
"model": "Echo Studio",
|
272
|
+
"hw_version": None,
|
273
|
+
},
|
247
274
|
"A3RMGO6LYLH7YN": {
|
248
275
|
"model": "Echo Dot",
|
249
276
|
"hw_version": "Gen4",
|
@@ -293,6 +320,10 @@ DEVICE_TYPE_TO_MODEL: dict[str, dict[str, str | None]] = {
|
|
293
320
|
"model": "Fire TV Stick 4K",
|
294
321
|
"hw_version": "Gen1",
|
295
322
|
},
|
323
|
+
"AP1F6KUH00XPV": {
|
324
|
+
"model": "Echo Stereo Pair",
|
325
|
+
"hw_version": "Virtual",
|
326
|
+
},
|
296
327
|
"ASQZWP4GPYUT7": {
|
297
328
|
"model": "Echo pop",
|
298
329
|
"hw_version": "Gen1",
|
@@ -1,29 +1,24 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: aioamazondevices
|
3
|
-
Version: 3.1.
|
3
|
+
Version: 3.1.17rc1
|
4
4
|
Summary: Python library to control Amazon devices
|
5
5
|
License: Apache-2.0
|
6
6
|
Author: Simone Chemelli
|
7
7
|
Author-email: simone.chemelli@gmail.com
|
8
|
-
Requires-Python: >=3.12
|
8
|
+
Requires-Python: >=3.12
|
9
9
|
Classifier: Development Status :: 2 - Pre-Alpha
|
10
10
|
Classifier: Intended Audience :: Developers
|
11
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
12
11
|
Classifier: Natural Language :: English
|
13
12
|
Classifier: Operating System :: OS Independent
|
14
|
-
Classifier: Programming Language :: Python :: 3
|
15
|
-
Classifier: Programming Language :: Python :: 3.12
|
16
|
-
Classifier: Programming Language :: Python :: 3.13
|
17
13
|
Classifier: Topic :: Software Development :: Libraries
|
18
14
|
Requires-Dist: aiohttp
|
19
|
-
Requires-Dist: babel
|
20
15
|
Requires-Dist: beautifulsoup4
|
21
16
|
Requires-Dist: colorlog
|
17
|
+
Requires-Dist: langcodes
|
22
18
|
Requires-Dist: orjson
|
23
19
|
Requires-Dist: yarl
|
24
20
|
Project-URL: Bug Tracker, https://github.com/chemelli74/aioamazondevices/issues
|
25
21
|
Project-URL: Changelog, https://github.com/chemelli74/aioamazondevices/blob/main/CHANGELOG.md
|
26
|
-
Project-URL: Repository, https://github.com/chemelli74/aioamazondevices
|
27
22
|
Description-Content-Type: text/markdown
|
28
23
|
|
29
24
|
# aioamazondevices
|
@@ -0,0 +1,10 @@
|
|
1
|
+
aioamazondevices/__init__.py,sha256=-DEB2sLPnC-46esN6l_NTZB1KlUE4XuMdEVWFW5-y1o,277
|
2
|
+
aioamazondevices/api.py,sha256=sLfD1-K2H32zgR03UvcBP-xBdwrF1b0VHs0ttfar7nY,36110
|
3
|
+
aioamazondevices/const.py,sha256=sNtoAN22sawIKES6TghRA_kvfe061Oliw_VvYJNklNA,8234
|
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-3.1.17rc1.dist-info/LICENSE,sha256=sS48k5sp9bFV-NSHDfAJuTZZ_-AP9ZDqUzQ9sffGlsg,11346
|
8
|
+
aioamazondevices-3.1.17rc1.dist-info/METADATA,sha256=-7MfUws8OCh7TwQwyd_HEU684aMqV697LRC_6ReCPRE,5243
|
9
|
+
aioamazondevices-3.1.17rc1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
10
|
+
aioamazondevices-3.1.17rc1.dist-info/RECORD,,
|
@@ -1,10 +0,0 @@
|
|
1
|
-
aioamazondevices/__init__.py,sha256=BZfm7as1On8-TQy94lMgVJKxpoi2DxZFD0kDKBPRGgo,277
|
2
|
-
aioamazondevices/api.py,sha256=pa24cOMgtmsgst7SWuFBypSbTnJTBny9_rVOjBD6VKk,36042
|
3
|
-
aioamazondevices/const.py,sha256=-TyB3A4X0gZOaWshuvls8RneQAXQW3W8ehOBFMkKLLA,7532
|
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-3.1.13.dist-info/LICENSE,sha256=sS48k5sp9bFV-NSHDfAJuTZZ_-AP9ZDqUzQ9sffGlsg,11346
|
8
|
-
aioamazondevices-3.1.13.dist-info/METADATA,sha256=y7In6lzTVHO5iADahatXL5Hf-JUF9BEbthEwec8AEvc,5526
|
9
|
-
aioamazondevices-3.1.13.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
10
|
-
aioamazondevices-3.1.13.dist-info/RECORD,,
|
File without changes
|
File without changes
|