aioamazondevices 3.2.2__py3-none-any.whl → 3.2.3__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.
@@ -1,6 +1,6 @@
1
1
  """aioamazondevices library."""
2
2
 
3
- __version__ = "3.2.2"
3
+ __version__ = "3.2.3"
4
4
 
5
5
 
6
6
  from .api import AmazonDevice, AmazonEchoApi
aioamazondevices/api.py CHANGED
@@ -148,9 +148,15 @@ class AmazonEchoApi:
148
148
  self.session: ClientSession
149
149
  self._devices: dict[str, Any] = {}
150
150
 
151
- lang_object = Language.make(territory=self._login_country_code.upper())
152
- lang_maximized = lang_object.maximize()
153
- self._language = f"{lang_maximized.language}-{lang_maximized.region}"
151
+ if locale and (lang := locale.get("language")):
152
+ language = lang
153
+ else:
154
+ lang_object = Language.make(territory=self._login_country_code.upper())
155
+ lang_maximized = lang_object.maximize()
156
+ language = f"{lang_maximized.language}-{lang_maximized.region}"
157
+
158
+ self._language = language
159
+
154
160
  _LOGGER.debug(
155
161
  "Initialize library with domain <%s> and language <%s>",
156
162
  self._domain,
aioamazondevices/const.py CHANGED
@@ -34,6 +34,7 @@ DOMAIN_BY_ISO3166_COUNTRY = {
34
34
  },
35
35
  "at": {
36
36
  "domain": "de",
37
+ "language": "en-US",
37
38
  "openid.assoc_handle": f"{DEFAULT_ASSOC_HANDLE}_de",
38
39
  },
39
40
  "au": {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: aioamazondevices
3
- Version: 3.2.2
3
+ Version: 3.2.3
4
4
  Summary: Python library to control Amazon devices
5
5
  License: Apache-2.0
6
6
  Author: Simone Chemelli
@@ -0,0 +1,11 @@
1
+ aioamazondevices/__init__.py,sha256=ym9BWa7TjPo80kc9b_xrVPeW1cq_Xh_eDwduw3soMh4,276
2
+ aioamazondevices/api.py,sha256=3o64TiaYVq_kG5upZnOynmey2Ls7ZhH7xPigFykxq8Y,39309
3
+ aioamazondevices/const.py,sha256=iJ87rGFZi9FY8M-dPsFY3DNYltiJ_PCjlr4RxQtZlJQ,8716
4
+ aioamazondevices/exceptions.py,sha256=CfOFKDvE_yl5BFoFcpTOuDfgRi_2oAtKk-nNJgfWBAs,726
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-3.2.3.dist-info/LICENSE,sha256=sS48k5sp9bFV-NSHDfAJuTZZ_-AP9ZDqUzQ9sffGlsg,11346
9
+ aioamazondevices-3.2.3.dist-info/METADATA,sha256=AZomsCQfXV4PWyyspc4PU1Xzq7HTeM7iRKbxzbU7yck,5234
10
+ aioamazondevices-3.2.3.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
11
+ aioamazondevices-3.2.3.dist-info/RECORD,,
@@ -1,11 +0,0 @@
1
- aioamazondevices/__init__.py,sha256=qelvi3_OmLOGJDAwlKAmQe5biPKQ8p0sbMx3c2Tpif0,276
2
- aioamazondevices/api.py,sha256=yIU0w95V9v7fDlArNK26azOtogBX8yxJJKBJbA_UWKs,39169
3
- aioamazondevices/const.py,sha256=q2TlD1O4jPtQ-hIxCCZuD-uoXCFNudF11JSjSC2hClY,8687
4
- aioamazondevices/exceptions.py,sha256=CfOFKDvE_yl5BFoFcpTOuDfgRi_2oAtKk-nNJgfWBAs,726
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-3.2.2.dist-info/LICENSE,sha256=sS48k5sp9bFV-NSHDfAJuTZZ_-AP9ZDqUzQ9sffGlsg,11346
9
- aioamazondevices-3.2.2.dist-info/METADATA,sha256=JIkelm9RwNWUra00wyvNp_wR09BNskKA-NFF013cbHU,5234
10
- aioamazondevices-3.2.2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
11
- aioamazondevices-3.2.2.dist-info/RECORD,,