aioamazondevices 6.5.4__py3-none-any.whl → 6.5.6__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.

Potentially problematic release.


This version of aioamazondevices might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  """aioamazondevices library."""
2
2
 
3
- __version__ = "6.5.4"
3
+ __version__ = "6.5.6"
4
4
 
5
5
 
6
6
  from .api import AmazonDevice, AmazonEchoApi
aioamazondevices/api.py CHANGED
@@ -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
  {
aioamazondevices/const.py CHANGED
@@ -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 = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aioamazondevices
3
- Version: 6.5.4
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"/>
@@ -0,0 +1,12 @@
1
+ aioamazondevices/__init__.py,sha256=6ThTkZ-OzmFeMahZFQYLf899HoK7cIYtEEmzOqwZjHw,276
2
+ aioamazondevices/api.py,sha256=VULa-dTvgzTA3U8O-W47cKRkPSylAFYUvHpaAwg5lFA,59772
3
+ aioamazondevices/const.py,sha256=KlrzGGCJUqqBUuZtGp6b9AsxYmaaZAzfIbsAQdsNVsA,13841
4
+ aioamazondevices/exceptions.py,sha256=gRYrxNAJnrV6uRuMx5e76VMvtNKyceXd09q84pDBBrI,638
5
+ aioamazondevices/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ aioamazondevices/query.py,sha256=xVgXF1PIiH7uu33Q_iVfCtdH9hqLOAGdCNnAxTZ76UE,1883
7
+ aioamazondevices/sounds.py,sha256=CXMDk-KoKVFxBdVAw3MeOClqgpzcVDxvQhFOJp7qX-Y,1896
8
+ aioamazondevices/utils.py,sha256=RzuKRhnq_8ymCoJMoQJ2vBYyuew06RSWpqQWmqdNczE,2019
9
+ aioamazondevices-6.5.6.dist-info/METADATA,sha256=8c-2IBneCI1ouoduCSOZVnq4_GztUnivKlGF4wIzj9M,8008
10
+ aioamazondevices-6.5.6.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
11
+ aioamazondevices-6.5.6.dist-info/licenses/LICENSE,sha256=sS48k5sp9bFV-NSHDfAJuTZZ_-AP9ZDqUzQ9sffGlsg,11346
12
+ aioamazondevices-6.5.6.dist-info/RECORD,,
@@ -1,12 +0,0 @@
1
- aioamazondevices/__init__.py,sha256=Gebx5LgQvFv43Yi3tiQ2rhUKmCIsrBO3Ti668TFikqc,276
2
- aioamazondevices/api.py,sha256=x9dP_gJk6s_KsJSflpNM8xObqnYD9BM-WeBBE-azsh0,59593
3
- aioamazondevices/const.py,sha256=qRRc5R1CAHEZ8vVuaMMVi1Q4xfEqvQmYnV8ZQ-xst2k,13691
4
- aioamazondevices/exceptions.py,sha256=gRYrxNAJnrV6uRuMx5e76VMvtNKyceXd09q84pDBBrI,638
5
- aioamazondevices/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- aioamazondevices/query.py,sha256=xVgXF1PIiH7uu33Q_iVfCtdH9hqLOAGdCNnAxTZ76UE,1883
7
- aioamazondevices/sounds.py,sha256=CXMDk-KoKVFxBdVAw3MeOClqgpzcVDxvQhFOJp7qX-Y,1896
8
- aioamazondevices/utils.py,sha256=RzuKRhnq_8ymCoJMoQJ2vBYyuew06RSWpqQWmqdNczE,2019
9
- aioamazondevices-6.5.4.dist-info/METADATA,sha256=z4wtMdalDOcNqTqzxy50NNx6-ppt7SdGB1YB4n46C7s,7679
10
- aioamazondevices-6.5.4.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
11
- aioamazondevices-6.5.4.dist-info/licenses/LICENSE,sha256=sS48k5sp9bFV-NSHDfAJuTZZ_-AP9ZDqUzQ9sffGlsg,11346
12
- aioamazondevices-6.5.4.dist-info/RECORD,,