aioamazondevices 3.2.9__py3-none-any.whl → 3.2.10__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.
- aioamazondevices/__init__.py +1 -1
- aioamazondevices/api.py +8 -4
- {aioamazondevices-3.2.9.dist-info → aioamazondevices-3.2.10.dist-info}/METADATA +1 -1
- aioamazondevices-3.2.10.dist-info/RECORD +11 -0
- aioamazondevices-3.2.9.dist-info/RECORD +0 -11
- {aioamazondevices-3.2.9.dist-info → aioamazondevices-3.2.10.dist-info}/LICENSE +0 -0
- {aioamazondevices-3.2.9.dist-info → aioamazondevices-3.2.10.dist-info}/WHEEL +0 -0
aioamazondevices/__init__.py
CHANGED
aioamazondevices/api.py
CHANGED
@@ -150,6 +150,7 @@ class AmazonEchoApi:
|
|
150
150
|
|
151
151
|
self.session: ClientSession
|
152
152
|
self._devices: dict[str, Any] = {}
|
153
|
+
self._sensors_available: bool = True
|
153
154
|
|
154
155
|
if locale and (lang := locale.get("language")):
|
155
156
|
language = lang
|
@@ -614,6 +615,7 @@ class AmazonEchoApi:
|
|
614
615
|
URI_IDS,
|
615
616
|
await self._http_phrase_error(raw_resp.status),
|
616
617
|
)
|
618
|
+
self._sensors_available = False
|
617
619
|
return []
|
618
620
|
|
619
621
|
json_data = await raw_resp.json()
|
@@ -840,10 +842,12 @@ class AmazonEchoApi:
|
|
840
842
|
else:
|
841
843
|
self._devices[dev_serial] = {key: data}
|
842
844
|
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
845
|
+
devices_sensors: dict[str, dict[str, AmazonDeviceSensor]] = {}
|
846
|
+
|
847
|
+
if self._sensors_available and (
|
848
|
+
entity_ids_list := await self._get_devices_ids()
|
849
|
+
):
|
850
|
+
devices_sensors = await self._get_sensors_states(entity_ids_list)
|
847
851
|
|
848
852
|
final_devices_list: dict[str, AmazonDevice] = {}
|
849
853
|
for device in self._devices.values():
|
@@ -0,0 +1,11 @@
|
|
1
|
+
aioamazondevices/__init__.py,sha256=-Ar_mvX5S_358fTLtKk3D2qoFUXnyf4K_jQ-uSuX4kk,277
|
2
|
+
aioamazondevices/api.py,sha256=a8VNFKe_eU4xoc0sCF7GTsEdEFvzjzdWpbsDeYzf1bU,40665
|
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.2.10.dist-info/LICENSE,sha256=sS48k5sp9bFV-NSHDfAJuTZZ_-AP9ZDqUzQ9sffGlsg,11346
|
9
|
+
aioamazondevices-3.2.10.dist-info/METADATA,sha256=QzUzTQA62DVSsDnGshjApO9iPw0OM90KvmBSnJE2rvk,5235
|
10
|
+
aioamazondevices-3.2.10.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
11
|
+
aioamazondevices-3.2.10.dist-info/RECORD,,
|
@@ -1,11 +0,0 @@
|
|
1
|
-
aioamazondevices/__init__.py,sha256=2XfQP4qV_VhLGE3oFBvhG1UROnKPbaYAyh_z648hGok,276
|
2
|
-
aioamazondevices/api.py,sha256=jMf3GSTLPRZMYF3-xz19AOZRGcun7ozS32xeLWtWEns,40494
|
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.2.9.dist-info/LICENSE,sha256=sS48k5sp9bFV-NSHDfAJuTZZ_-AP9ZDqUzQ9sffGlsg,11346
|
9
|
-
aioamazondevices-3.2.9.dist-info/METADATA,sha256=1RPgBzXRxzYDW1hOPO0D13g686IOWeQIZKHWfFTTO-8,5234
|
10
|
-
aioamazondevices-3.2.9.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
11
|
-
aioamazondevices-3.2.9.dist-info/RECORD,,
|
File without changes
|
File without changes
|