py-uconnect 0.4.2__tar.gz → 0.4.4__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.4
2
2
  Name: py-uconnect
3
- Version: 0.4.2
3
+ Version: 0.4.4
4
4
  Summary: Python API Client for FCA/Stellantis cars
5
5
  Home-page: https://github.com/hass-uconnect/py-uconnect
6
6
  Author: Olga Novgorodova
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 3.10
15
15
  Requires-Python: >=3.10
16
16
  Description-Content-Type: text/markdown
17
17
  License-File: LICENSE
18
- Requires-Dist: boto3>=1.35.96
18
+ Requires-Dist: botocore<1.37.2,>=1.36.0
19
19
  Requires-Dist: requests>=2.32.3
20
20
  Requires-Dist: requests-auth-aws-sigv4>=0.7
21
21
  Requires-Dist: dataclasses_json>=0.6.7
@@ -1,7 +1,6 @@
1
1
  import requests
2
2
  import uuid
3
3
  import json
4
- import boto3
5
4
  import base64
6
5
  import logging
7
6
  import http.client as http_client
@@ -15,6 +14,10 @@ from requests_auth_aws_sigv4 import AWSSigV4
15
14
  from .command import Command
16
15
  from .brands import Brand
17
16
 
17
+ from botocore.session import get_session
18
+ from botocore.config import Config
19
+ from botocore import UNSIGNED
20
+
18
21
  _LOGGER = logging.getLogger("py_uconnect")
19
22
 
20
23
 
@@ -114,7 +117,11 @@ class API:
114
117
  """Logs into the Uconnect and caches the auth tokens"""
115
118
 
116
119
  if self.cognito_client is None:
117
- self.cognito_client = boto3.client("cognito-identity", self.brand.region)
120
+ self.cognito_client = get_session().create_client(
121
+ "cognito-identity",
122
+ region_name=self.brand.region,
123
+ config=Config(signature_version=UNSIGNED),
124
+ )
118
125
 
119
126
  r = self.sess.request(
120
127
  method="GET",
@@ -446,7 +446,12 @@ class Client:
446
446
  if result in ("failure", "failed", "error", "rejected"):
447
447
  return False
448
448
 
449
- except (ConnectionError, TimeoutError, ValueError) as err:
449
+ except (ConnectionError, TimeoutError, ValueError, HTTPError) as err:
450
+ # Some brands/regions return 404 for the remote-operation status
451
+ # endpoint even though the command itself succeeds (see issue #105).
452
+ # Don't abort the poll on the HTTP error: fall through to the
453
+ # notifications-based fallback below, which reports the status via
454
+ # a working endpoint.
450
455
  last_error = err
451
456
 
452
457
  r = self._get_commands_statuses(vin)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: py-uconnect
3
- Version: 0.4.2
3
+ Version: 0.4.4
4
4
  Summary: Python API Client for FCA/Stellantis cars
5
5
  Home-page: https://github.com/hass-uconnect/py-uconnect
6
6
  Author: Olga Novgorodova
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 3.10
15
15
  Requires-Python: >=3.10
16
16
  Description-Content-Type: text/markdown
17
17
  License-File: LICENSE
18
- Requires-Dist: boto3>=1.35.96
18
+ Requires-Dist: botocore<1.37.2,>=1.36.0
19
19
  Requires-Dist: requests>=2.32.3
20
20
  Requires-Dist: requests-auth-aws-sigv4>=0.7
21
21
  Requires-Dist: dataclasses_json>=0.6.7
@@ -1,4 +1,4 @@
1
- boto3>=1.35.96
1
+ botocore<1.37.2,>=1.36.0
2
2
  requests>=2.32.3
3
3
  requests-auth-aws-sigv4>=0.7
4
4
  dataclasses_json>=0.6.7
@@ -20,7 +20,7 @@ setup(
20
20
  ],
21
21
  description="Python API Client for FCA/Stellantis cars",
22
22
  install_requires=[
23
- "boto3>=1.35.96",
23
+ "botocore>=1.36.0,<1.37.2",
24
24
  "requests>=2.32.3",
25
25
  "requests-auth-aws-sigv4>=0.7",
26
26
  "dataclasses_json>=0.6.7",
@@ -44,6 +44,6 @@ setup(
44
44
  name="py-uconnect",
45
45
  packages=find_packages(include=["py_uconnect", "py_uconnect.*"]),
46
46
  url="https://github.com/hass-uconnect/py-uconnect",
47
- version="0.4.2",
47
+ version="0.4.4",
48
48
  zip_safe=False,
49
49
  )
File without changes
File without changes
File without changes