carconnectivity-connector-seatcupra 0.1a17__py3-none-any.whl → 0.1a18__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: carconnectivity-connector-seatcupra
3
- Version: 0.1a17
3
+ Version: 0.1a18
4
4
  Summary: CarConnectivity connector for Seat and Cupra services
5
5
  Author: Till Steinbach
6
6
  License: MIT License
@@ -1,10 +1,10 @@
1
1
  carconnectivity_connectors/seatcupra/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- carconnectivity_connectors/seatcupra/_version.py,sha256=h6qKff23EXoCChHlB_Nct7DIvHThmGCDSsQuZQK2zzA,509
2
+ carconnectivity_connectors/seatcupra/_version.py,sha256=AzwM9w1dt-7j68mrwryycYGn4KhF1VZVvPVM1rH_oUo,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
6
  carconnectivity_connectors/seatcupra/command_impl.py,sha256=LmBOCWGZPfJCG_4-5449xvO6NAvnPDsAWEBKlsG4WoI,3051
7
- carconnectivity_connectors/seatcupra/connector.py,sha256=cOuQOlnImZlVMOjHbRrm2vo02zlNB4m87uO88subqZk,102253
7
+ carconnectivity_connectors/seatcupra/connector.py,sha256=BIt3jaOgStNZHqKPk7NQ-S4B7bUOkl-tEtuDx2zG1jA,103242
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.1a17.dist-info/LICENSE,sha256=PIwI1alwDyOfvEQHdGCm2u9uf_mGE8030xZDfun0xTo,1071
18
- carconnectivity_connector_seatcupra-0.1a17.dist-info/METADATA,sha256=Dat_Q7Tw4hiyrVptq1LiL5xLSAGzj2RH56jSJFyxR0c,5642
19
- carconnectivity_connector_seatcupra-0.1a17.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
20
- carconnectivity_connector_seatcupra-0.1a17.dist-info/top_level.txt,sha256=KqA8GviZsDH4PtmnwSQsz0HB_w-TWkeEHLIRNo5dTaI,27
21
- carconnectivity_connector_seatcupra-0.1a17.dist-info/RECORD,,
17
+ carconnectivity_connector_seatcupra-0.1a18.dist-info/LICENSE,sha256=PIwI1alwDyOfvEQHdGCm2u9uf_mGE8030xZDfun0xTo,1071
18
+ carconnectivity_connector_seatcupra-0.1a18.dist-info/METADATA,sha256=D_FAa_WnsSe_1hHGfMKcMKqVsW2f3ibtubdFyv_uX1c,5642
19
+ carconnectivity_connector_seatcupra-0.1a18.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
20
+ carconnectivity_connector_seatcupra-0.1a18.dist-info/top_level.txt,sha256=KqA8GviZsDH4PtmnwSQsz0HB_w-TWkeEHLIRNo5dTaI,27
21
+ carconnectivity_connector_seatcupra-0.1a18.dist-info/RECORD,,
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '0.1a17'
20
+ __version__ = version = '0.1a18'
21
21
  __version_tuple__ = version_tuple = (0, 1)
@@ -191,25 +191,34 @@ class Connector(BaseConnector):
191
191
  raise
192
192
  except TooManyRequestsError as err:
193
193
  LOG.error('Retrieval error during update. Too many requests from your account (%s). Will try again after 15 minutes', str(err))
194
+ self.connection_state._set_value(value=ConnectionState.ERROR) # pylint: disable=protected-access
194
195
  self._stop_event.wait(900)
195
196
  except RetrievalError as err:
196
197
  LOG.error('Retrieval error during update (%s). Will try again after configured interval of %ss', str(err), interval)
198
+ self.connection_state._set_value(value=ConnectionState.ERROR) # pylint: disable=protected-access
197
199
  self._stop_event.wait(interval)
198
200
  except APIError as err:
199
201
  LOG.error('API error during update (%s). Will try again after configured interval of %ss', str(err), interval)
202
+ self.connection_state._set_value(value=ConnectionState.ERROR) # pylint: disable=protected-access
200
203
  self._stop_event.wait(interval)
201
204
  except APICompatibilityError as err:
202
205
  LOG.error('API compatability error during update (%s). Will try again after configured interval of %ss', str(err), interval)
206
+ self.connection_state._set_value(value=ConnectionState.ERROR) # pylint: disable=protected-access
203
207
  self._stop_event.wait(interval)
204
208
  except TemporaryAuthenticationError as err:
205
209
  LOG.error('Temporary authentification error during update (%s). Will try again after configured interval of %ss', str(err), interval)
210
+ self.connection_state._set_value(value=ConnectionState.ERROR) # pylint: disable=protected-access
206
211
  self._stop_event.wait(interval)
207
212
  except Exception as err:
208
213
  LOG.critical('Critical error during update: %s', traceback.format_exc())
214
+ self.connection_state._set_value(value=ConnectionState.ERROR) # pylint: disable=protected-access
209
215
  self.healthy._set_value(value=False) # pylint: disable=protected-access
210
216
  raise err
211
217
  else:
218
+ self.connection_state._set_value(value=ConnectionState.CONNECTED) # pylint: disable=protected-access
212
219
  self._stop_event.wait(interval)
220
+ # When leaving the loop, set the connection state to disconnected
221
+ self.connection_state._set_value(value=ConnectionState.DISCONNECTED) # pylint: disable=protected-access
213
222
 
214
223
  def persist(self) -> None:
215
224
  """