carconnectivity-connector-seatcupra 0.1a15__py3-none-any.whl → 0.1a16__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.
- {carconnectivity_connector_seatcupra-0.1a15.dist-info → carconnectivity_connector_seatcupra-0.1a16.dist-info}/METADATA +2 -2
- {carconnectivity_connector_seatcupra-0.1a15.dist-info → carconnectivity_connector_seatcupra-0.1a16.dist-info}/RECORD +8 -8
- carconnectivity_connectors/seatcupra/_version.py +1 -1
- carconnectivity_connectors/seatcupra/command_impl.py +4 -2
- carconnectivity_connectors/seatcupra/connector.py +3 -8
- {carconnectivity_connector_seatcupra-0.1a15.dist-info → carconnectivity_connector_seatcupra-0.1a16.dist-info}/LICENSE +0 -0
- {carconnectivity_connector_seatcupra-0.1a15.dist-info → carconnectivity_connector_seatcupra-0.1a16.dist-info}/WHEEL +0 -0
- {carconnectivity_connector_seatcupra-0.1a15.dist-info → carconnectivity_connector_seatcupra-0.1a16.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: carconnectivity-connector-seatcupra
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.1a16
|
4
4
|
Summary: CarConnectivity connector for Seat and Cupra services
|
5
5
|
Author: Till Steinbach
|
6
6
|
License: MIT License
|
@@ -37,7 +37,7 @@ Classifier: Topic :: Software Development :: Libraries
|
|
37
37
|
Requires-Python: >=3.9
|
38
38
|
Description-Content-Type: text/markdown
|
39
39
|
License-File: LICENSE
|
40
|
-
Requires-Dist: carconnectivity>=0.
|
40
|
+
Requires-Dist: carconnectivity>=0.4a10
|
41
41
|
Requires-Dist: oauthlib~=3.2.2
|
42
42
|
Requires-Dist: requests~=2.32.3
|
43
43
|
Requires-Dist: jwt~=1.3.1
|
@@ -1,10 +1,10 @@
|
|
1
1
|
carconnectivity_connectors/seatcupra/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
carconnectivity_connectors/seatcupra/_version.py,sha256=
|
2
|
+
carconnectivity_connectors/seatcupra/_version.py,sha256=Q2vMRbSVvIsvGRGZpDL_EO13NrfM1hiyRO4RK2N2B04,509
|
3
3
|
carconnectivity_connectors/seatcupra/capability.py,sha256=Oe9tC_u69bj6VmOuNJ21RKoETe2j3QyZCoz-VgcZPQ0,4523
|
4
4
|
carconnectivity_connectors/seatcupra/charging.py,sha256=BJe_5GEB0JkP78tpU6kyKpwuwjDZHvm-kt3PTlpQHeU,3336
|
5
5
|
carconnectivity_connectors/seatcupra/climatization.py,sha256=0xxWlxrheAPzkVT8WRQtbm6ExZmVdgW7lUdOXyS_qWY,1695
|
6
|
-
carconnectivity_connectors/seatcupra/command_impl.py,sha256=
|
7
|
-
carconnectivity_connectors/seatcupra/connector.py,sha256=
|
6
|
+
carconnectivity_connectors/seatcupra/command_impl.py,sha256=LmBOCWGZPfJCG_4-5449xvO6NAvnPDsAWEBKlsG4WoI,3051
|
7
|
+
carconnectivity_connectors/seatcupra/connector.py,sha256=BeiW5YQtmNckm-CsYU_fd2KT2LmdOzB6druVG-QNUNE,101715
|
8
8
|
carconnectivity_connectors/seatcupra/vehicle.py,sha256=s0G-HqG5qcwStDxD3649KgLMa3lKPZ4TOGWRJEuQzsQ,3403
|
9
9
|
carconnectivity_connectors/seatcupra/auth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
10
10
|
carconnectivity_connectors/seatcupra/auth/auth_util.py,sha256=Y81h8fGOMSMgPtE4wI_TI9WgE_s43uaPjRLBBINhj4g,4433
|
@@ -14,8 +14,8 @@ carconnectivity_connectors/seatcupra/auth/session_manager.py,sha256=ZIDvC848T3fy
|
|
14
14
|
carconnectivity_connectors/seatcupra/auth/vw_web_session.py,sha256=CcI6m68IyRs6WsMDu-IsW3Dj85vyGiMmxvFqNETMHO0,10929
|
15
15
|
carconnectivity_connectors/seatcupra/auth/helpers/blacklist_retry.py,sha256=f3wsiY5bpHDBxp7Va1Mv9nKJ4u3qnCHZZmDu78_AhMk,1251
|
16
16
|
carconnectivity_connectors/seatcupra/ui/connector_ui.py,sha256=SNYnlcGJpbWhuLiIHD2l6H9IfSiMz3IgmvXsdossDnE,1412
|
17
|
-
carconnectivity_connector_seatcupra-0.
|
18
|
-
carconnectivity_connector_seatcupra-0.
|
19
|
-
carconnectivity_connector_seatcupra-0.
|
20
|
-
carconnectivity_connector_seatcupra-0.
|
21
|
-
carconnectivity_connector_seatcupra-0.
|
17
|
+
carconnectivity_connector_seatcupra-0.1a16.dist-info/LICENSE,sha256=PIwI1alwDyOfvEQHdGCm2u9uf_mGE8030xZDfun0xTo,1071
|
18
|
+
carconnectivity_connector_seatcupra-0.1a16.dist-info/METADATA,sha256=HCIYpy1TCxYmcQGaceTHYYog1OtZqs4a71o-Gr-fpjA,5642
|
19
|
+
carconnectivity_connector_seatcupra-0.1a16.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
20
|
+
carconnectivity_connector_seatcupra-0.1a16.dist-info/top_level.txt,sha256=KqA8GviZsDH4PtmnwSQsz0HB_w-TWkeEHLIRNo5dTaI,27
|
21
|
+
carconnectivity_connector_seatcupra-0.1a16.dist-info/RECORD,,
|
@@ -31,6 +31,8 @@ class SpinCommand(GenericCommand):
|
|
31
31
|
|
32
32
|
@value.setter
|
33
33
|
def value(self, new_value: Optional[Union[str, Dict]]) -> None:
|
34
|
+
# Execute early hooks before parsing the value
|
35
|
+
new_value = self._execute_on_set_hook(new_value, early_hook=True)
|
34
36
|
if isinstance(new_value, str):
|
35
37
|
parser = ThrowingArgumentParser(prog='', add_help=False, exit_on_error=False)
|
36
38
|
parser.add_argument('command', help='Command to execute', type=SpinCommand.Command,
|
@@ -55,8 +57,8 @@ class SpinCommand(GenericCommand):
|
|
55
57
|
raise ValueError('Invalid value for SpinCommand. '
|
56
58
|
f'Command must be one of {SpinCommand.Command}')
|
57
59
|
if self._is_changeable:
|
58
|
-
|
59
|
-
|
60
|
+
# Execute late hooks before setting the value
|
61
|
+
new_value = self._execute_on_set_hook(new_value, early_hook=False)
|
60
62
|
self._set_value(new_value)
|
61
63
|
else:
|
62
64
|
raise TypeError('You cannot set this attribute. Attribute is not mutable.')
|
@@ -78,17 +78,11 @@ class Connector(BaseConnector):
|
|
78
78
|
|
79
79
|
self.connected: BooleanAttribute = BooleanAttribute(name="connected", parent=self, tags={'connector_custom'})
|
80
80
|
self.interval: DurationAttribute = DurationAttribute(name="interval", parent=self, tags={'connector_custom'})
|
81
|
+
self.interval.minimum = timedelta(seconds=180)
|
82
|
+
self.interval._is_changeable = True # pylint: disable=protected-access
|
81
83
|
|
82
|
-
def __check_interval(attribute: GenericAttribute, value: Any) -> Any:
|
83
|
-
del attribute
|
84
|
-
if value is not None and value < timedelta(seconds=180):
|
85
|
-
raise ValueError('Intervall must be at least 180 seconds')
|
86
|
-
return value
|
87
84
|
self._healthy = False
|
88
85
|
|
89
|
-
self.interval._is_changeable = True # pylint: disable=protected-access
|
90
|
-
self.interval._add_on_set_hook(__check_interval) # pylint: disable=protected-access
|
91
|
-
|
92
86
|
self.commands: Commands = Commands(parent=self)
|
93
87
|
|
94
88
|
LOG.info("Loading seatcupra connector with config %s", config_remove_credentials(config))
|
@@ -292,6 +286,7 @@ class Connector(BaseConnector):
|
|
292
286
|
vehicle_to_update = self.fetch_parking_position(vehicle_to_update)
|
293
287
|
if vehicle_to_update.capabilities.has_capability('vehicleHealthInspection'):
|
294
288
|
vehicle_to_update = self.fetch_maintenance(vehicle_to_update)
|
289
|
+
self.car_connectivity.transaction_end()
|
295
290
|
|
296
291
|
def fetch_vehicles(self) -> None:
|
297
292
|
"""
|
File without changes
|
File without changes
|