aioamazondevices 0.10.0__tar.gz → 0.11.0__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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "aioamazondevices"
3
- version = "0.10.0"
3
+ version = "0.11.0"
4
4
  description = "Python library to control Amazon devices"
5
5
  authors = ["Simone Chemelli <simone.chemelli@gmail.com>"]
6
6
  license = "Apache-2.0"
@@ -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
  ]
@@ -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
@@ -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
+ }