aioamazondevices 5.0.0__tar.gz → 5.0.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: aioamazondevices
3
- Version: 5.0.0
3
+ Version: 5.0.1
4
4
  Summary: Python library to control Amazon devices
5
5
  License: Apache-2.0
6
6
  Author: Simone Chemelli
@@ -19,6 +19,7 @@ Requires-Dist: orjson
19
19
  Requires-Dist: yarl
20
20
  Project-URL: Bug Tracker, https://github.com/chemelli74/aioamazondevices/issues
21
21
  Project-URL: Changelog, https://github.com/chemelli74/aioamazondevices/blob/main/CHANGELOG.md
22
+ Project-URL: Homepage, https://github.com/chemelli74/aioamazondevices
22
23
  Description-Content-Type: text/markdown
23
24
 
24
25
  # aioamazondevices
@@ -74,7 +75,6 @@ The script accept command line arguments or a library_test.json config file:
74
75
 
75
76
  ```json
76
77
  {
77
- "country": "IT",
78
78
  "email": "<my_address@gmail.com>",
79
79
  "password": "<my_password>",
80
80
  "single_device_name": "Echo Dot Livingroom",
@@ -51,7 +51,6 @@ The script accept command line arguments or a library_test.json config file:
51
51
 
52
52
  ```json
53
53
  {
54
- "country": "IT",
55
54
  "email": "<my_address@gmail.com>",
56
55
  "password": "<my_password>",
57
56
  "single_device_name": "Echo Dot Livingroom",
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "aioamazondevices"
3
- version = "5.0.0"
3
+ version = "5.0.1"
4
4
  requires-python = ">=3.12"
5
5
  description = "Python library to control Amazon devices"
6
6
  authors = [
@@ -29,6 +29,7 @@ dependencies = [
29
29
  ]
30
30
 
31
31
  [project.urls]
32
+ "Homepage" = "https://github.com/chemelli74/aioamazondevices"
32
33
  "Bug Tracker" = "https://github.com/chemelli74/aioamazondevices/issues"
33
34
  "Changelog" = "https://github.com/chemelli74/aioamazondevices/blob/main/CHANGELOG.md"
34
35
 
@@ -1,6 +1,6 @@
1
1
  """aioamazondevices library."""
2
2
 
3
- __version__ = "5.0.0"
3
+ __version__ = "5.0.1"
4
4
 
5
5
 
6
6
  from .api import AmazonDevice, AmazonEchoApi
@@ -91,7 +91,6 @@ class AmazonDevice:
91
91
  device_type: str
92
92
  device_owner_customer_id: str
93
93
  device_cluster_members: list[str]
94
- device_locale: str
95
94
  online: bool
96
95
  serial_number: str
97
96
  software_version: str
@@ -431,9 +430,10 @@ class AmazonEchoApi:
431
430
 
432
431
  content_type: str = resp.headers.get("Content-Type", "")
433
432
  _LOGGER.debug(
434
- "Response %s for url %s with content type: %s",
435
- resp.status,
433
+ "Response for url %s :\nstatus : %s \
434
+ \ncontent type: %s ",
436
435
  url,
436
+ resp.status,
437
437
  content_type,
438
438
  )
439
439
 
@@ -862,9 +862,6 @@ class AmazonEchoApi:
862
862
  method=HTTPMethod.GET,
863
863
  url=f"https://alexa.amazon.{self._domain}{URI_QUERIES[key]}",
864
864
  )
865
- _LOGGER.debug("Response URL: %s", raw_resp.url)
866
- response_code = raw_resp.status
867
- _LOGGER.debug("Response code: |%s|", response_code)
868
865
 
869
866
  response_data = await raw_resp.text()
870
867
  json_data = {} if len(response_data) == 0 else await raw_resp.json()
@@ -914,7 +911,6 @@ class AmazonEchoApi:
914
911
  device_cluster_members=(
915
912
  devices_node["clusterMembers"] or [serial_number]
916
913
  ),
917
- device_locale=preferences_node.get("locale", self._language),
918
914
  online=devices_node["online"],
919
915
  serial_number=serial_number,
920
916
  software_version=devices_node["softwareVersion"],
@@ -986,7 +982,7 @@ class AmazonEchoApi:
986
982
  base_payload = {
987
983
  "deviceType": device.device_type,
988
984
  "deviceSerialNumber": device.serial_number,
989
- "locale": device.device_locale,
985
+ "locale": self._language,
990
986
  "customerId": device.device_owner_customer_id,
991
987
  }
992
988
 
@@ -1021,7 +1017,7 @@ class AmazonEchoApi:
1021
1017
  "expireAfter": "PT5S",
1022
1018
  "content": [
1023
1019
  {
1024
- "locale": device.device_locale,
1020
+ "locale": self._language,
1025
1021
  "display": {
1026
1022
  "title": "Home Assistant",
1027
1023
  "body": message_body,
@@ -181,6 +181,11 @@ DEVICE_TYPE_TO_MODEL: dict[str, dict[str, str | None]] = {
181
181
  "model": "FireTV 4k MAX",
182
182
  "hw_version": "Gen2",
183
183
  },
184
+ "A1X92YQU8MWAPD": {
185
+ "manufacturer": "Devialet",
186
+ "model": "Freebox Delta",
187
+ "hw_version": None,
188
+ },
184
189
  "A1XWJRHALS1REP": {
185
190
  "model": "Echo Show 5",
186
191
  "hw_version": "Gen2",
@@ -332,7 +337,7 @@ DEVICE_TYPE_TO_MODEL: dict[str, dict[str, str | None]] = {
332
337
  "hw_version": None,
333
338
  },
334
339
  "A3RMGO6LYLH7YN": {
335
- "model": "Echo Dot",
340
+ "model": "Echo",
336
341
  "hw_version": "Gen4",
337
342
  },
338
343
  "A3S5BH2HU6VAYF": {
@@ -364,6 +369,10 @@ DEVICE_TYPE_TO_MODEL: dict[str, dict[str, str | None]] = {
364
369
  "model": "Echo",
365
370
  "hw_version": "Gen2",
366
371
  },
372
+ "ADMKNMEVNL158": {
373
+ "model": "Echo Hub",
374
+ "hw_version": "Gen1",
375
+ },
367
376
  "ADOUDFQX2QVX0": {
368
377
  "model": "Fire TV Omni QLED",
369
378
  "hw_version": None,