aioamazondevices 0.10.0__py3-none-any.whl → 0.11.0__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.
@@ -1,6 +1,6 @@
1
1
  """aioamazondevices library."""
2
2
 
3
- __version__ = "0.10.0"
3
+ __version__ = "0.11.0"
4
4
 
5
5
 
6
6
  from .api import AmazonDevice, AmazonEchoApi
@@ -12,6 +12,6 @@ from .exceptions import (
12
12
  __all__ = [
13
13
  "AmazonDevice",
14
14
  "AmazonEchoApi",
15
- "CannotConnect",
16
15
  "CannotAuthenticate",
16
+ "CannotConnect",
17
17
  ]
aioamazondevices/api.py CHANGED
@@ -513,8 +513,7 @@ class AmazonEchoApi:
513
513
 
514
514
  # Remove stale, orphaned and virtual devices
515
515
  final_devices_list: dict[str, Any] = devices.copy()
516
- for serial in devices:
517
- device = devices[serial]
516
+ for serial, device in devices.items():
518
517
  if (
519
518
  DEVICES not in device
520
519
  or device[DEVICES].get("deviceType") == AMAZON_DEVICE_TYPE
aioamazondevices/const.py CHANGED
@@ -56,3 +56,16 @@ URI_QUERIES = {
56
56
  SAVE_PATH = "out"
57
57
  HTML_EXTENSION = ".html"
58
58
  JSON_EXTENSION = ".json"
59
+
60
+ DEVICE_TYPE_TO_MODEL = {
61
+ "A1RABVCI4QCIKC": "Echo Dot (Gen3)",
62
+ "A2DS1Q2TPDJ48U": "Echo Dot Clock (Gen5)",
63
+ "A2H4LV5GIZ1JFT": "Echo Dot Clock (Gen4)",
64
+ "A2U21SRK4QGSE1": "Echo Dot Clock (Gen4)",
65
+ "A32DDESGESSHZA": "Echo Dot (Gen3)",
66
+ "A32DOYMUN6DTXA": "Echo Dot (Gen3)",
67
+ "A3RMGO6LYLH7YN": "Echo Dot (Gen4)",
68
+ "A3S5BH2HU6VAYF": "Echo Dot (Gen2)",
69
+ "A4ZXE0RM7LQ7A": "Echo Dot (Gen5)",
70
+ "AKNO1N0KSFN8L": "Echo Dot (Gen1)",
71
+ }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aioamazondevices
3
- Version: 0.10.0
3
+ Version: 0.11.0
4
4
  Summary: Python library to control Amazon devices
5
5
  Home-page: https://github.com/chemelli74/aioamazondevices
6
6
  License: Apache-2.0
@@ -0,0 +1,10 @@
1
+ aioamazondevices/__init__.py,sha256=eHj5kvzoE6UEcFSzlUNHQLMnf0dOnaLkg1fTo_HzBF8,277
2
+ aioamazondevices/api.py,sha256=e0hlC1sznOeu735ckO-ihHuDh6MofI_1PxL-r2sEaYc,18782
3
+ aioamazondevices/auth.py,sha256=vLJh7iOEUYu-44WOvmrmZZueOcwz5dmHAGQmqs9fJME,10099
4
+ aioamazondevices/const.py,sha256=T143A-tHoBTjIocWin9q4BQ_2kUozj-EwWGba3RoqSs,1852
5
+ aioamazondevices/exceptions.py,sha256=qK_Hak9pc-lC2FPW-0i4rYIwNpEOHMmA9Rii8F2lkQo,1260
6
+ aioamazondevices/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
+ aioamazondevices-0.11.0.dist-info/LICENSE,sha256=sS48k5sp9bFV-NSHDfAJuTZZ_-AP9ZDqUzQ9sffGlsg,11346
8
+ aioamazondevices-0.11.0.dist-info/METADATA,sha256=OfxPWgkBJEubCOu4Zo5r9qMIOAbU4BURJmx7CK_wv98,4743
9
+ aioamazondevices-0.11.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
10
+ aioamazondevices-0.11.0.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- aioamazondevices/__init__.py,sha256=9z3LcKwlqvyoSNv0jIr9RUgvhODSLkaIdFL7cRVAipU,277
2
- aioamazondevices/api.py,sha256=K4Y2ziWbG5mh2isi8HQxmkoQH6z3ojmRDJnoqEB8UQA,18803
3
- aioamazondevices/auth.py,sha256=vLJh7iOEUYu-44WOvmrmZZueOcwz5dmHAGQmqs9fJME,10099
4
- aioamazondevices/const.py,sha256=arLUJrzcHp5J-sl9GjyfJ82OgF3XnR0_Fmxsg3yg_L4,1398
5
- aioamazondevices/exceptions.py,sha256=qK_Hak9pc-lC2FPW-0i4rYIwNpEOHMmA9Rii8F2lkQo,1260
6
- aioamazondevices/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
- aioamazondevices-0.10.0.dist-info/LICENSE,sha256=sS48k5sp9bFV-NSHDfAJuTZZ_-AP9ZDqUzQ9sffGlsg,11346
8
- aioamazondevices-0.10.0.dist-info/METADATA,sha256=E79-R5BNrwTxktTvasvywQwXluuiodeH1y3cXuOoZEY,4743
9
- aioamazondevices-0.10.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
10
- aioamazondevices-0.10.0.dist-info/RECORD,,