aioamazondevices 0.10.0__py3-none-any.whl → 0.11.1__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.1"
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
@@ -43,13 +43,15 @@ from .exceptions import CannotAuthenticate, CannotRegisterDevice, WrongMethod
43
43
  class AmazonDevice:
44
44
  """Amazon device class."""
45
45
 
46
- connected: bool
47
- connection_type: str
48
- ip_address: str
49
- name: str
50
- mac: str
51
- type: str
52
- wifi: str
46
+ account_name: str
47
+ capabilities: list[str]
48
+ device_family: str
49
+ device_type: str
50
+ serial_number: str
51
+ software_version: str
52
+ do_not_disturb: bool
53
+ response_style: str
54
+ bluetooth_state: bool
53
55
 
54
56
 
55
57
  class AmazonEchoApi:
@@ -513,8 +515,7 @@ class AmazonEchoApi:
513
515
 
514
516
  # Remove stale, orphaned and virtual devices
515
517
  final_devices_list: dict[str, Any] = devices.copy()
516
- for serial in devices:
517
- device = devices[serial]
518
+ for serial, device in devices.items():
518
519
  if (
519
520
  DEVICES not in device
520
521
  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.1
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=akBvRqfCUpiabNsm5jUMpv-R-f9w2wkuNvmSdisGhK0,277
2
+ aioamazondevices/api.py,sha256=bDKV6Tb55WfZusA1e5FogHP4Ig3n5i03ufbdzg4XYvw,18880
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.1.dist-info/LICENSE,sha256=sS48k5sp9bFV-NSHDfAJuTZZ_-AP9ZDqUzQ9sffGlsg,11346
8
+ aioamazondevices-0.11.1.dist-info/METADATA,sha256=d4SrpvMAaTUaiGR6l0e7YkbAoHr4ozg9tL1cPCZOxp8,4743
9
+ aioamazondevices-0.11.1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
10
+ aioamazondevices-0.11.1.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,,