carconnectivity-connector-skoda 0.7.2__py3-none-any.whl → 0.8__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.4
2
2
  Name: carconnectivity-connector-skoda
3
- Version: 0.7.2
3
+ Version: 0.8
4
4
  Summary: CarConnectivity connector for Skoda services
5
5
  Author: Till Steinbach
6
6
  License: MIT License
@@ -37,8 +37,8 @@ Classifier: Topic :: Software Development :: Libraries
37
37
  Requires-Python: >=3.8
38
38
  Description-Content-Type: text/markdown
39
39
  License-File: LICENSE
40
- Requires-Dist: carconnectivity>=0.7
41
- Requires-Dist: oauthlib~=3.2.2
40
+ Requires-Dist: carconnectivity>=0.7.1
41
+ Requires-Dist: oauthlib~=3.3.1
42
42
  Requires-Dist: requests~=2.32.3
43
43
  Requires-Dist: pyjwt~=2.10
44
44
  Requires-Dist: paho-mqtt~=2.1.0
@@ -1,11 +1,11 @@
1
- carconnectivity_connector_skoda-0.7.2.dist-info/licenses/LICENSE,sha256=PIwI1alwDyOfvEQHdGCm2u9uf_mGE8030xZDfun0xTo,1071
1
+ carconnectivity_connector_skoda-0.8.dist-info/licenses/LICENSE,sha256=PIwI1alwDyOfvEQHdGCm2u9uf_mGE8030xZDfun0xTo,1071
2
2
  carconnectivity_connectors/skoda/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- carconnectivity_connectors/skoda/_version.py,sha256=d8Q6A3AJbbiXbr7TTxrk_DMbAQYVhMa2jrNwZsIl2LM,511
4
- carconnectivity_connectors/skoda/capability.py,sha256=wH563-XUb_TnT8di1qDjnj-cY-cNHcAT6z7mx21LhSQ,4770
3
+ carconnectivity_connectors/skoda/_version.py,sha256=i6raU8IDbjX2_qal-So090T9KiZO76P0n85Br_T16qg,506
4
+ carconnectivity_connectors/skoda/capability.py,sha256=TC8-yC23UUrf0faePdbZL0802DHXbtGDcSlt3vj5ltg,4770
5
5
  carconnectivity_connectors/skoda/charging.py,sha256=7DPNiTWFhxiiEFKVnbIIU2TCmkpmcMWx_zsHXGXFpAQ,6856
6
6
  carconnectivity_connectors/skoda/climatization.py,sha256=Jut468SkxjPBDTqroWFvDifVPfJBxGjsFed5pc4kZkg,1768
7
7
  carconnectivity_connectors/skoda/command_impl.py,sha256=wDCI3Bka5pXlbyI4yVFS353TgFGyiBHBkERpP2g0A9w,3230
8
- carconnectivity_connectors/skoda/connector.py,sha256=c-PavWSf1TNO5v773nmiP8vnxikRF6GdTl-hIO-_shA,146247
8
+ carconnectivity_connectors/skoda/connector.py,sha256=Nj1wkA5SI70Ivvh_UVvTxQVSu2oE9xpk3UqxJfwf1gQ,147265
9
9
  carconnectivity_connectors/skoda/error.py,sha256=ffxzvjmci7vtp9Q1K4DR1kBF0kTJxN5Gluci3kDBkEI,2459
10
10
  carconnectivity_connectors/skoda/mqtt_client.py,sha256=D9_e_Bz842ULYKlRWd4JmosalhTtYr9DtCuvWrT3WQw,39126
11
11
  carconnectivity_connectors/skoda/vehicle.py,sha256=q5gwe-_yPfE_-aEc17UQ-Q0Z46IN7PCpNG5jLw5PZl0,3981
@@ -17,7 +17,7 @@ carconnectivity_connectors/skoda/auth/session_manager.py,sha256=Uf1vujuDBYUCAXhY
17
17
  carconnectivity_connectors/skoda/auth/skoda_web_session.py,sha256=tapjCRRPBu3tHrDoKmtuAlQhgxktib3oWTB8MHEzZTY,10816
18
18
  carconnectivity_connectors/skoda/auth/helpers/blacklist_retry.py,sha256=f3wsiY5bpHDBxp7Va1Mv9nKJ4u3qnCHZZmDu78_AhMk,1251
19
19
  carconnectivity_connectors/skoda/ui/connector_ui.py,sha256=lLjwoakRaU0S80hAVwVi4JA1wtHycGHcoM2-7S9qsqI,1386
20
- carconnectivity_connector_skoda-0.7.2.dist-info/METADATA,sha256=PC6R_MePIj7Pdkd6hu3pKGjomoacIKnhhUOFbvkwM_s,5381
21
- carconnectivity_connector_skoda-0.7.2.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
22
- carconnectivity_connector_skoda-0.7.2.dist-info/top_level.txt,sha256=KqA8GviZsDH4PtmnwSQsz0HB_w-TWkeEHLIRNo5dTaI,27
23
- carconnectivity_connector_skoda-0.7.2.dist-info/RECORD,,
20
+ carconnectivity_connector_skoda-0.8.dist-info/METADATA,sha256=vX69lDP8qJUdrDCTtkAicZbgbN3c_JAHkw_XT85O5p8,5381
21
+ carconnectivity_connector_skoda-0.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
22
+ carconnectivity_connector_skoda-0.8.dist-info/top_level.txt,sha256=KqA8GviZsDH4PtmnwSQsz0HB_w-TWkeEHLIRNo5dTaI,27
23
+ carconnectivity_connector_skoda-0.8.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (78.1.1)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '0.7.2'
21
- __version_tuple__ = version_tuple = (0, 7, 2)
20
+ __version__ = version = '0.8'
21
+ __version_tuple__ = version_tuple = (0, 8)
@@ -132,7 +132,7 @@ class Capability(GenericObject):
132
132
  LOCATION_DATA_DISABLED = 1013
133
133
  LICENSE_INACTIVE = 2001
134
134
  LICENSE_EXPIRED = 2002
135
- MISSING_LICENSE = 2003
135
+ LICENSE_MISSING = 2003
136
136
  USER_NOT_VERIFIED = 3001
137
137
  TERMS_AND_CONDITIONS_NOT_ACCEPTED = 3002
138
138
  INSUFFICIENT_RIGHTS = 3003
@@ -22,7 +22,7 @@ from carconnectivity.units import Length, Speed, Power, Temperature
22
22
  from carconnectivity.doors import Doors
23
23
  from carconnectivity.windows import Windows
24
24
  from carconnectivity.lights import Lights
25
- from carconnectivity.drive import GenericDrive, ElectricDrive, CombustionDrive
25
+ from carconnectivity.drive import GenericDrive, ElectricDrive, CombustionDrive, DieselDrive
26
26
  from carconnectivity.attributes import BooleanAttribute, DurationAttribute, TemperatureAttribute, EnumAttribute, LevelAttribute, \
27
27
  CurrentAttribute
28
28
  from carconnectivity.charging import Charging
@@ -1301,10 +1301,11 @@ class Connector(BaseConnector):
1301
1301
  else:
1302
1302
  if engine_type == GenericDrive.Type.ELECTRIC:
1303
1303
  drive = ElectricDrive(drive_id=drive_id, drives=vehicle.drives)
1304
+ elif engine_type == GenericDrive.Type.DIESEL:
1305
+ drive = DieselDrive(drive_id=drive_id, drives=vehicle.drives)
1304
1306
  elif engine_type in [GenericDrive.Type.FUEL,
1305
1307
  GenericDrive.Type.GASOLINE,
1306
1308
  GenericDrive.Type.PETROL,
1307
- GenericDrive.Type.DIESEL,
1308
1309
  GenericDrive.Type.CNG,
1309
1310
  GenericDrive.Type.LPG]:
1310
1311
  drive = CombustionDrive(drive_id=drive_id, drives=vehicle.drives)
@@ -1335,9 +1336,22 @@ class Connector(BaseConnector):
1335
1336
  'currentSoCInPercent',
1336
1337
  'currentFuelLevelInPercent',
1337
1338
  'remainingRangeInKm'})
1339
+ if 'adBlueRange' in range_data and range_data['adBlueRange'] is not None:
1340
+ # pylint: disable-next=protected-access
1341
+ for drive in vehicle.drives.drives.values():
1342
+ if isinstance(drive, DieselDrive):
1343
+ # pylint: disable-next=protected-access
1344
+ drive.adblue_range._set_value(value=range_data['adBlueRange'], measured=captured_at, unit=Length.KM)
1345
+ drive.adblue_range.precision = 1
1346
+ else:
1347
+ for drive in vehicle.drives.drives.values():
1348
+ if isinstance(drive, DieselDrive):
1349
+ # pylint: disable-next=protected-access
1350
+ drive.adblue_range._set_value(value=None, measured=captured_at, unit=Length.KM)
1338
1351
  log_extra_keys(LOG_API, '/api/v2/vehicle-status/{vin}/driving-range', range_data, {'carCapturedTimestamp',
1339
1352
  'carType',
1340
1353
  'totalRangeInKm',
1354
+ 'adBlueRange',
1341
1355
  'primaryEngineRange',
1342
1356
  'secondaryEngineRange'})
1343
1357
  return vehicle