aioamazondevices 0.10.0__tar.gz → 0.11.1__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.
- {aioamazondevices-0.10.0 → aioamazondevices-0.11.1}/PKG-INFO +1 -1
- {aioamazondevices-0.10.0 → aioamazondevices-0.11.1}/pyproject.toml +1 -1
- {aioamazondevices-0.10.0 → aioamazondevices-0.11.1}/src/aioamazondevices/__init__.py +2 -2
- {aioamazondevices-0.10.0 → aioamazondevices-0.11.1}/src/aioamazondevices/api.py +10 -9
- {aioamazondevices-0.10.0 → aioamazondevices-0.11.1}/src/aioamazondevices/const.py +13 -0
- {aioamazondevices-0.10.0 → aioamazondevices-0.11.1}/LICENSE +0 -0
- {aioamazondevices-0.10.0 → aioamazondevices-0.11.1}/README.md +0 -0
- {aioamazondevices-0.10.0 → aioamazondevices-0.11.1}/src/aioamazondevices/auth.py +0 -0
- {aioamazondevices-0.10.0 → aioamazondevices-0.11.1}/src/aioamazondevices/exceptions.py +0 -0
- {aioamazondevices-0.10.0 → aioamazondevices-0.11.1}/src/aioamazondevices/py.typed +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
"""aioamazondevices library."""
|
2
2
|
|
3
|
-
__version__ = "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
|
]
|
@@ -43,13 +43,15 @@ from .exceptions import CannotAuthenticate, CannotRegisterDevice, WrongMethod
|
|
43
43
|
class AmazonDevice:
|
44
44
|
"""Amazon device class."""
|
45
45
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
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
|
@@ -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
|
+
}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|