aioamazondevices 3.3.0__tar.gz → 3.3.2__tar.gz
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-3.3.0 → aioamazondevices-3.3.2}/PKG-INFO +54 -5
- {aioamazondevices-3.3.0 → aioamazondevices-3.3.2}/README.md +53 -4
- {aioamazondevices-3.3.0 → aioamazondevices-3.3.2}/pyproject.toml +1 -1
- {aioamazondevices-3.3.0 → aioamazondevices-3.3.2}/src/aioamazondevices/__init__.py +1 -1
- {aioamazondevices-3.3.0 → aioamazondevices-3.3.2}/src/aioamazondevices/api.py +3 -8
- {aioamazondevices-3.3.0 → aioamazondevices-3.3.2}/src/aioamazondevices/const.py +18 -18
- {aioamazondevices-3.3.0 → aioamazondevices-3.3.2}/LICENSE +0 -0
- {aioamazondevices-3.3.0 → aioamazondevices-3.3.2}/src/aioamazondevices/exceptions.py +0 -0
- {aioamazondevices-3.3.0 → aioamazondevices-3.3.2}/src/aioamazondevices/py.typed +0 -0
- {aioamazondevices-3.3.0 → aioamazondevices-3.3.2}/src/aioamazondevices/sounds.py +0 -0
- {aioamazondevices-3.3.0 → aioamazondevices-3.3.2}/src/aioamazondevices/utils.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: aioamazondevices
|
3
|
-
Version: 3.3.
|
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
|
-
<!--
|
109
|
-
|
110
|
-
|
111
|
-
|
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!
|
@@ -77,15 +77,64 @@ Please open an issue [here](https://github.com/chemelli74/aioamazondevices/issue
|
|
77
77
|
|
78
78
|
Current device list: `DEVICE_TYPE_TO_MODEL` from [const.py](https://github.com/chemelli74/aioamazondevices/blob/main/src/aioamazondevices/const.py)
|
79
79
|
|
80
|
+
## Roadmap
|
81
|
+
|
82
|
+
The development roadmap includes the following items (in order of priority):
|
83
|
+
|
84
|
+
- Stabilizing library for all countries
|
85
|
+
- Re-introduce sensors via graphQL
|
86
|
+
- Introduce timers/schedules/alarms
|
87
|
+
- Introduce real time websocket updates (media player control)
|
88
|
+
- Introduce control for Bluetooth connected devices
|
89
|
+
|
80
90
|
## Contributors ✨
|
81
91
|
|
82
92
|
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
|
83
93
|
|
84
94
|
<!-- prettier-ignore-start -->
|
85
|
-
<!--
|
86
|
-
|
87
|
-
|
88
|
-
|
95
|
+
<!-- readme: contributors -start -->
|
96
|
+
<table>
|
97
|
+
<tbody>
|
98
|
+
<tr>
|
99
|
+
<td align="center">
|
100
|
+
<a href="https://github.com/chemelli74">
|
101
|
+
<img src="https://avatars.githubusercontent.com/u/57354320?v=4" width="100;" alt="chemelli74"/>
|
102
|
+
<br />
|
103
|
+
<sub><b>Simone Chemelli</b></sub>
|
104
|
+
</a>
|
105
|
+
</td>
|
106
|
+
<td align="center">
|
107
|
+
<a href="https://github.com/jeeftor">
|
108
|
+
<img src="https://avatars.githubusercontent.com/u/6491743?v=4" width="100;" alt="jeeftor"/>
|
109
|
+
<br />
|
110
|
+
<sub><b>Jeef</b></sub>
|
111
|
+
</a>
|
112
|
+
</td>
|
113
|
+
<td align="center">
|
114
|
+
<a href="https://github.com/jamesonuk">
|
115
|
+
<img src="https://avatars.githubusercontent.com/u/1040621?v=4" width="100;" alt="jamesonuk"/>
|
116
|
+
<br />
|
117
|
+
<sub><b>jameson_uk</b></sub>
|
118
|
+
</a>
|
119
|
+
</td>
|
120
|
+
<td align="center">
|
121
|
+
<a href="https://github.com/lchavezcuu">
|
122
|
+
<img src="https://avatars.githubusercontent.com/u/22165856?v=4" width="100;" alt="lchavezcuu"/>
|
123
|
+
<br />
|
124
|
+
<sub><b>Luis Chavez</b></sub>
|
125
|
+
</a>
|
126
|
+
</td>
|
127
|
+
<td align="center">
|
128
|
+
<a href="https://github.com/tronikos">
|
129
|
+
<img src="https://avatars.githubusercontent.com/u/9987465?v=4" width="100;" alt="tronikos"/>
|
130
|
+
<br />
|
131
|
+
<sub><b>tronikos</b></sub>
|
132
|
+
</a>
|
133
|
+
</td>
|
134
|
+
</tr>
|
135
|
+
<tbody>
|
136
|
+
</table>
|
137
|
+
<!-- readme: contributors -end -->
|
89
138
|
<!-- prettier-ignore-end -->
|
90
139
|
|
91
140
|
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
|
@@ -152,14 +152,9 @@ class AmazonEchoApi:
|
|
152
152
|
self._devices: dict[str, Any] = {}
|
153
153
|
self._sensors_available: bool = True
|
154
154
|
|
155
|
-
|
156
|
-
|
157
|
-
|
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>",
|
@@ -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
|
-
|
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
|
-
|
76
|
-
"
|
74
|
+
"us": AMAZON_US_OVERRIDE,
|
75
|
+
"za": {
|
76
|
+
"domain": "co.za",
|
77
77
|
},
|
78
78
|
}
|
79
79
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|