aioamazondevices 3.3.0__py3-none-any.whl → 3.3.2__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.3.0"
3
+ __version__ = "3.3.2"
4
4
 
5
5
 
6
6
  from .api import AmazonDevice, AmazonEchoApi
aioamazondevices/api.py CHANGED
@@ -152,14 +152,9 @@ class AmazonEchoApi:
152
152
  self._devices: dict[str, Any] = {}
153
153
  self._sensors_available: bool = True
154
154
 
155
- if locale and (lang := locale.get("language")):
156
- language = lang
157
- else:
158
- lang_object = Language.make(territory=self._login_country_code.upper())
159
- lang_maximized = lang_object.maximize()
160
- language = f"{lang_maximized.language}-{lang_maximized.region}"
161
-
162
- self._language = language
155
+ lang_object = Language.make(territory=self._login_country_code.upper())
156
+ lang_maximized = lang_object.maximize()
157
+ self._language = f"{lang_maximized.language}-{lang_maximized.region}"
163
158
 
164
159
  _LOGGER.debug(
165
160
  "Initialize library with domain <%s> and language <%s>",
aioamazondevices/const.py CHANGED
@@ -30,19 +30,21 @@ TO_REDACT = {
30
30
  "user_id",
31
31
  }
32
32
 
33
+ AMAZON_DE_OVERRIDE = {
34
+ "domain": "de",
35
+ "openid.assoc_handle": f"{DEFAULT_ASSOC_HANDLE}_de",
36
+ }
37
+ AMAZON_US_OVERRIDE = {
38
+ "domain": "com",
39
+ "openid.assoc_handle": DEFAULT_ASSOC_HANDLE,
40
+ }
41
+
33
42
  DOMAIN_BY_ISO3166_COUNTRY = {
34
- "ar": {
35
- "domain": "com",
36
- "openid.assoc_handle": DEFAULT_ASSOC_HANDLE,
37
- },
38
- "at": {
39
- "domain": "de",
40
- "language": "en-US",
41
- "openid.assoc_handle": f"{DEFAULT_ASSOC_HANDLE}_de",
42
- },
43
+ "ar": AMAZON_US_OVERRIDE,
44
+ "at": AMAZON_DE_OVERRIDE,
43
45
  "au": {
44
46
  "domain": "com.au",
45
- "openid.assoc_handle": DEFAULT_ASSOC_HANDLE,
47
+ "openid.assoc_handle": f"{DEFAULT_ASSOC_HANDLE}_au",
46
48
  },
47
49
  "be": {
48
50
  "domain": "com.be",
@@ -54,26 +56,24 @@ DOMAIN_BY_ISO3166_COUNTRY = {
54
56
  "domain": "co.uk",
55
57
  "openid.assoc_handle": f"{DEFAULT_ASSOC_HANDLE}_uk",
56
58
  },
57
- "il": {
58
- "domain": "com",
59
- "openid.assoc_handle": DEFAULT_ASSOC_HANDLE,
60
- },
59
+ "il": AMAZON_US_OVERRIDE,
61
60
  "jp": {
62
61
  "domain": "co.jp",
63
62
  },
64
63
  "mx": {
65
64
  "domain": "com.mx",
66
65
  },
66
+ "no": AMAZON_DE_OVERRIDE,
67
67
  "nz": {
68
68
  "domain": "com.au",
69
- "openid.assoc_handle": DEFAULT_ASSOC_HANDLE,
69
+ "openid.assoc_handle": f"{DEFAULT_ASSOC_HANDLE}_au",
70
70
  },
71
71
  "tr": {
72
72
  "domain": "com.tr",
73
73
  },
74
- "us": {
75
- "domain": "com",
76
- "openid.assoc_handle": DEFAULT_ASSOC_HANDLE,
74
+ "us": AMAZON_US_OVERRIDE,
75
+ "za": {
76
+ "domain": "co.za",
77
77
  },
78
78
  }
79
79
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: aioamazondevices
3
- Version: 3.3.0
3
+ Version: 3.3.2
4
4
  Summary: Python library to control Amazon devices
5
5
  License: Apache-2.0
6
6
  Author: Simone Chemelli
@@ -100,15 +100,64 @@ Please open an issue [here](https://github.com/chemelli74/aioamazondevices/issue
100
100
 
101
101
  Current device list: `DEVICE_TYPE_TO_MODEL` from [const.py](https://github.com/chemelli74/aioamazondevices/blob/main/src/aioamazondevices/const.py)
102
102
 
103
+ ## Roadmap
104
+
105
+ The development roadmap includes the following items (in order of priority):
106
+
107
+ - Stabilizing library for all countries
108
+ - Re-introduce sensors via graphQL
109
+ - Introduce timers/schedules/alarms
110
+ - Introduce real time websocket updates (media player control)
111
+ - Introduce control for Bluetooth connected devices
112
+
103
113
  ## Contributors ✨
104
114
 
105
115
  Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
106
116
 
107
117
  <!-- prettier-ignore-start -->
108
- <!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
109
- <!-- markdownlint-disable -->
110
- <!-- markdownlint-enable -->
111
- <!-- ALL-CONTRIBUTORS-LIST:END -->
118
+ <!-- readme: contributors -start -->
119
+ <table>
120
+ <tbody>
121
+ <tr>
122
+ <td align="center">
123
+ <a href="https://github.com/chemelli74">
124
+ <img src="https://avatars.githubusercontent.com/u/57354320?v=4" width="100;" alt="chemelli74"/>
125
+ <br />
126
+ <sub><b>Simone Chemelli</b></sub>
127
+ </a>
128
+ </td>
129
+ <td align="center">
130
+ <a href="https://github.com/jeeftor">
131
+ <img src="https://avatars.githubusercontent.com/u/6491743?v=4" width="100;" alt="jeeftor"/>
132
+ <br />
133
+ <sub><b>Jeef</b></sub>
134
+ </a>
135
+ </td>
136
+ <td align="center">
137
+ <a href="https://github.com/jamesonuk">
138
+ <img src="https://avatars.githubusercontent.com/u/1040621?v=4" width="100;" alt="jamesonuk"/>
139
+ <br />
140
+ <sub><b>jameson_uk</b></sub>
141
+ </a>
142
+ </td>
143
+ <td align="center">
144
+ <a href="https://github.com/lchavezcuu">
145
+ <img src="https://avatars.githubusercontent.com/u/22165856?v=4" width="100;" alt="lchavezcuu"/>
146
+ <br />
147
+ <sub><b>Luis Chavez</b></sub>
148
+ </a>
149
+ </td>
150
+ <td align="center">
151
+ <a href="https://github.com/tronikos">
152
+ <img src="https://avatars.githubusercontent.com/u/9987465?v=4" width="100;" alt="tronikos"/>
153
+ <br />
154
+ <sub><b>tronikos</b></sub>
155
+ </a>
156
+ </td>
157
+ </tr>
158
+ <tbody>
159
+ </table>
160
+ <!-- readme: contributors -end -->
112
161
  <!-- prettier-ignore-end -->
113
162
 
114
163
  This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
@@ -0,0 +1,11 @@
1
+ aioamazondevices/__init__.py,sha256=Vm_HkqWpI1qruTH2zbDAXLG2TwI_jAGQPhGNH6oaYT0,276
2
+ aioamazondevices/api.py,sha256=0PfroqBDoe4196wd4_saXviLnmibZlSq5OGIlcCSUVw,39746
3
+ aioamazondevices/const.py,sha256=qeaGMLGKH4r-84EjBvMzj1BcwgRRcDD551TUsUu4AiI,9029
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.3.2.dist-info/LICENSE,sha256=sS48k5sp9bFV-NSHDfAJuTZZ_-AP9ZDqUzQ9sffGlsg,11346
9
+ aioamazondevices-3.3.2.dist-info/METADATA,sha256=4lWQySyRXr4UoWYM5vyJNk4mtEQshvyKZtY2vYDvqIA,7097
10
+ aioamazondevices-3.3.2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
11
+ aioamazondevices-3.3.2.dist-info/RECORD,,
@@ -1,11 +0,0 @@
1
- aioamazondevices/__init__.py,sha256=l58jARpnVtVgQ9Pkjx-3h_CC_YZVREDA-HgSAng32bQ,276
2
- aioamazondevices/api.py,sha256=4r1VMWkuk8GCVtrHlNq8Wvscl_ThscglHjuZyHgOm9U,39885
3
- aioamazondevices/const.py,sha256=1TTqejdLJVB-8fBODXx4Ha9dxiQnuLVjbWusJ7WILdo,9043
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.3.0.dist-info/LICENSE,sha256=sS48k5sp9bFV-NSHDfAJuTZZ_-AP9ZDqUzQ9sffGlsg,11346
9
- aioamazondevices-3.3.0.dist-info/METADATA,sha256=pNQDqnC2sr7HMU1Suo5ug9ZokDdqBmc4isBNY-aXvZg,5245
10
- aioamazondevices-3.3.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
11
- aioamazondevices-3.3.0.dist-info/RECORD,,