aioamazondevices 3.0.9__tar.gz → 3.0.10__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.3
2
2
  Name: aioamazondevices
3
- Version: 3.0.9
3
+ Version: 3.0.10
4
4
  Summary: Python library to control Amazon devices
5
5
  License: Apache-2.0
6
6
  Author: Simone Chemelli
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "aioamazondevices"
3
- version = "3.0.9"
3
+ version = "3.0.10"
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__ = "3.0.9"
3
+ __version__ = "3.0.10"
4
4
 
5
5
 
6
6
  from .api import AmazonDevice, AmazonEchoApi
@@ -34,6 +34,7 @@ from .const import (
34
34
  CSRF_COOKIE,
35
35
  DEFAULT_ASSOC_HANDLE,
36
36
  DEFAULT_HEADERS,
37
+ DEVICE_TO_IGNORE,
37
38
  DEVICE_TYPE_TO_MODEL,
38
39
  DOMAIN_BY_ISO3166_COUNTRY,
39
40
  HTML_EXTENSION,
@@ -610,7 +611,7 @@ class AmazonEchoApi:
610
611
  # Remove stale, orphaned and virtual devices
611
612
  if (
612
613
  NODE_DEVICES not in device
613
- or devices_node.get("deviceType") == AMAZON_DEVICE_TYPE
614
+ or devices_node.get("deviceType") in DEVICE_TO_IGNORE
614
615
  ):
615
616
  continue
616
617
 
@@ -67,6 +67,11 @@ BIN_EXTENSION = ".bin"
67
67
 
68
68
  SPEAKER_GROUP_MODEL = "Speaker Group"
69
69
 
70
+ DEVICE_TO_IGNORE: list[str] = [
71
+ AMAZON_DEVICE_TYPE, # Alexa App for Mobile
72
+ "A1RTAM01W29CUP", # Alexa App for PC
73
+ ]
74
+
70
75
  DEVICE_TYPE_TO_MODEL: dict[str, dict[str, str | None]] = {
71
76
  "A10A33FOX2NUBK": {
72
77
  "model": "Echo Spot",