aioamazondevices 6.5.4__tar.gz → 6.5.6__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.
Potentially problematic release.
This version of aioamazondevices might be problematic. Click here for more details.
- {aioamazondevices-6.5.4 → aioamazondevices-6.5.6}/PKG-INFO +10 -3
- {aioamazondevices-6.5.4 → aioamazondevices-6.5.6}/README.md +9 -2
- {aioamazondevices-6.5.4 → aioamazondevices-6.5.6}/pyproject.toml +1 -1
- {aioamazondevices-6.5.4 → aioamazondevices-6.5.6}/src/aioamazondevices/__init__.py +1 -1
- {aioamazondevices-6.5.4 → aioamazondevices-6.5.6}/src/aioamazondevices/api.py +5 -0
- {aioamazondevices-6.5.4 → aioamazondevices-6.5.6}/src/aioamazondevices/const.py +6 -0
- {aioamazondevices-6.5.4 → aioamazondevices-6.5.6}/LICENSE +0 -0
- {aioamazondevices-6.5.4 → aioamazondevices-6.5.6}/src/aioamazondevices/exceptions.py +0 -0
- {aioamazondevices-6.5.4 → aioamazondevices-6.5.6}/src/aioamazondevices/py.typed +0 -0
- {aioamazondevices-6.5.4 → aioamazondevices-6.5.6}/src/aioamazondevices/query.py +0 -0
- {aioamazondevices-6.5.4 → aioamazondevices-6.5.6}/src/aioamazondevices/sounds.py +0 -0
- {aioamazondevices-6.5.4 → aioamazondevices-6.5.6}/src/aioamazondevices/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: aioamazondevices
|
|
3
|
-
Version: 6.5.
|
|
3
|
+
Version: 6.5.6
|
|
4
4
|
Summary: Python library to control Amazon devices
|
|
5
5
|
License-Expression: Apache-2.0
|
|
6
6
|
License-File: LICENSE
|
|
@@ -142,6 +142,15 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
142
142
|
<sub><b>Flo</b></sub>
|
|
143
143
|
</a>
|
|
144
144
|
</td>
|
|
145
|
+
<td align="center">
|
|
146
|
+
<a href="https://github.com/francescolf">
|
|
147
|
+
<img src="https://avatars.githubusercontent.com/u/14892143?v=4" width="100;" alt="francescolf"/>
|
|
148
|
+
<br />
|
|
149
|
+
<sub><b>Francesco Lo Faro</b></sub>
|
|
150
|
+
</a>
|
|
151
|
+
</td>
|
|
152
|
+
</tr>
|
|
153
|
+
<tr>
|
|
145
154
|
<td align="center">
|
|
146
155
|
<a href="https://github.com/lchavezcuu">
|
|
147
156
|
<img src="https://avatars.githubusercontent.com/u/22165856?v=4" width="100;" alt="lchavezcuu"/>
|
|
@@ -149,8 +158,6 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
149
158
|
<sub><b>Luis Chavez</b></sub>
|
|
150
159
|
</a>
|
|
151
160
|
</td>
|
|
152
|
-
</tr>
|
|
153
|
-
<tr>
|
|
154
161
|
<td align="center">
|
|
155
162
|
<a href="https://github.com/maxmati">
|
|
156
163
|
<img src="https://avatars.githubusercontent.com/u/509560?v=4" width="100;" alt="maxmati"/>
|
|
@@ -117,6 +117,15 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
117
117
|
<sub><b>Flo</b></sub>
|
|
118
118
|
</a>
|
|
119
119
|
</td>
|
|
120
|
+
<td align="center">
|
|
121
|
+
<a href="https://github.com/francescolf">
|
|
122
|
+
<img src="https://avatars.githubusercontent.com/u/14892143?v=4" width="100;" alt="francescolf"/>
|
|
123
|
+
<br />
|
|
124
|
+
<sub><b>Francesco Lo Faro</b></sub>
|
|
125
|
+
</a>
|
|
126
|
+
</td>
|
|
127
|
+
</tr>
|
|
128
|
+
<tr>
|
|
120
129
|
<td align="center">
|
|
121
130
|
<a href="https://github.com/lchavezcuu">
|
|
122
131
|
<img src="https://avatars.githubusercontent.com/u/22165856?v=4" width="100;" alt="lchavezcuu"/>
|
|
@@ -124,8 +133,6 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
124
133
|
<sub><b>Luis Chavez</b></sub>
|
|
125
134
|
</a>
|
|
126
135
|
</td>
|
|
127
|
-
</tr>
|
|
128
|
-
<tr>
|
|
129
136
|
<td align="center">
|
|
130
137
|
<a href="https://github.com/maxmati">
|
|
131
138
|
<img src="https://avatars.githubusercontent.com/u/509560?v=4" width="100;" alt="maxmati"/>
|
|
@@ -387,6 +387,8 @@ class AmazonEchoApi:
|
|
|
387
387
|
headers = DEFAULT_HEADERS.copy()
|
|
388
388
|
headers.update({"User-Agent": REQUEST_AGENT[agent]})
|
|
389
389
|
headers.update({"Accept-Language": self._language})
|
|
390
|
+
headers.update({"x-amzn-client": "aioamazondevices"})
|
|
391
|
+
headers.update({"x-amzn-build-version": __version__})
|
|
390
392
|
|
|
391
393
|
if self._csrf_cookie:
|
|
392
394
|
csrf = {CSRF_COOKIE: self._csrf_cookie}
|
|
@@ -613,6 +615,9 @@ class AmazonEchoApi:
|
|
|
613
615
|
"""Retrieve devices sensors states."""
|
|
614
616
|
devices_sensors: dict[str, dict[str, AmazonDeviceSensor]] = {}
|
|
615
617
|
|
|
618
|
+
if not self._endpoints:
|
|
619
|
+
return {}
|
|
620
|
+
|
|
616
621
|
endpoint_ids = list(self._endpoints.keys())
|
|
617
622
|
payload = [
|
|
618
623
|
{
|
|
@@ -90,6 +90,12 @@ SENSORS: dict[str, dict[str, str | None]] = {
|
|
|
90
90
|
"subkey": "value",
|
|
91
91
|
"scale": None,
|
|
92
92
|
},
|
|
93
|
+
"connectivity": {
|
|
94
|
+
"name": "reachability",
|
|
95
|
+
"key": "reachabilityStatusValue",
|
|
96
|
+
"subkey": None,
|
|
97
|
+
"scale": None,
|
|
98
|
+
},
|
|
93
99
|
}
|
|
94
100
|
|
|
95
101
|
ALEXA_INFO_SKILLS = [
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|