aioamazondevices 3.1.2__py3-none-any.whl → 3.1.4__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 +5 -3
- {aioamazondevices-3.1.2.dist-info → aioamazondevices-3.1.4.dist-info}/METADATA +1 -1
- aioamazondevices-3.1.4.dist-info/RECORD +10 -0
- aioamazondevices-3.1.2.dist-info/RECORD +0 -10
- {aioamazondevices-3.1.2.dist-info → aioamazondevices-3.1.4.dist-info}/LICENSE +0 -0
- {aioamazondevices-3.1.2.dist-info → aioamazondevices-3.1.4.dist-info}/WHEEL +0 -0
aioamazondevices/__init__.py
CHANGED
aioamazondevices/api.py
CHANGED
@@ -352,8 +352,8 @@ class AmazonEchoApi:
|
|
352
352
|
HTTPStatus.UNAUTHORIZED,
|
353
353
|
]:
|
354
354
|
raise CannotAuthenticate
|
355
|
-
if not self._ignore_ap_sigin_error(resp):
|
356
|
-
raise RequestFailed
|
355
|
+
if not await self._ignore_ap_sigin_error(resp):
|
356
|
+
raise RequestFailed("Request failed with HTTP error %s", resp.status)
|
357
357
|
|
358
358
|
await self._save_to_file(
|
359
359
|
await resp.text(),
|
@@ -538,7 +538,9 @@ class AmazonEchoApi:
|
|
538
538
|
serial_number = device_identifier["dmsDeviceSerialNumber"]
|
539
539
|
|
540
540
|
# Add identifier information to the device
|
541
|
-
|
541
|
+
# but only if the device was previously found
|
542
|
+
if serial_number in self._devices:
|
543
|
+
self._devices[serial_number] |= {NODE_IDENTIFIER: identifier}
|
542
544
|
|
543
545
|
# Add to entity IDs list for sensor retrieval
|
544
546
|
entity_ids_list.append({"entityId": entity_id, "entityType": "ENTITY"})
|
@@ -0,0 +1,10 @@
|
|
1
|
+
aioamazondevices/__init__.py,sha256=d9diKF3mwdRX8wzAXDS0Tw39qMbt8461nxkYTrhuuwU,276
|
2
|
+
aioamazondevices/api.py,sha256=aTe9ZcBDQZxm0rUr_aMYq686y0lQwauPZzAB_zI939Y,35352
|
3
|
+
aioamazondevices/const.py,sha256=DzMYrcChuuz2uxaVbLVdwV3uZB1Db_-33YOPPFDYYVU,6181
|
4
|
+
aioamazondevices/exceptions.py,sha256=nPbR928NryTbnxm5QwQpCSpRItvZ3PRYKynUUxH-_v4,1345
|
5
|
+
aioamazondevices/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
+
aioamazondevices/sounds.py,sha256=01pVCDFIuhrLypXInw4JNuHsC6zjMLsuKocet1R6we8,13409
|
7
|
+
aioamazondevices-3.1.4.dist-info/LICENSE,sha256=sS48k5sp9bFV-NSHDfAJuTZZ_-AP9ZDqUzQ9sffGlsg,11346
|
8
|
+
aioamazondevices-3.1.4.dist-info/METADATA,sha256=bX2PnTmfN3nYmSrw4kqce7g7IkzqYHY6mERw_Gi33BM,5546
|
9
|
+
aioamazondevices-3.1.4.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
10
|
+
aioamazondevices-3.1.4.dist-info/RECORD,,
|
@@ -1,10 +0,0 @@
|
|
1
|
-
aioamazondevices/__init__.py,sha256=UnAteFaOyKJzP_wlx45WE8VDxi45xe98NrSMUjOmi74,276
|
2
|
-
aioamazondevices/api.py,sha256=tsn-Dx5ng90BkGgniYlRmczisM_jzuVpRgFwThz4yXE,35179
|
3
|
-
aioamazondevices/const.py,sha256=DzMYrcChuuz2uxaVbLVdwV3uZB1Db_-33YOPPFDYYVU,6181
|
4
|
-
aioamazondevices/exceptions.py,sha256=nPbR928NryTbnxm5QwQpCSpRItvZ3PRYKynUUxH-_v4,1345
|
5
|
-
aioamazondevices/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
-
aioamazondevices/sounds.py,sha256=01pVCDFIuhrLypXInw4JNuHsC6zjMLsuKocet1R6we8,13409
|
7
|
-
aioamazondevices-3.1.2.dist-info/LICENSE,sha256=sS48k5sp9bFV-NSHDfAJuTZZ_-AP9ZDqUzQ9sffGlsg,11346
|
8
|
-
aioamazondevices-3.1.2.dist-info/METADATA,sha256=64nyIFhyM4gX0chNuMOFDM0qYCiJQkAwYNX4NbBq5w4,5546
|
9
|
-
aioamazondevices-3.1.2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
10
|
-
aioamazondevices-3.1.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|