volkswagencarnet 5.0.1__py3-none-any.whl → 5.0.2__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.

Potentially problematic release.


This version of volkswagencarnet might be problematic. Click here for more details.

@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '5.0.1'
16
- __version_tuple__ = version_tuple = (5, 0, 1)
15
+ __version__ = version = '5.0.2'
16
+ __version_tuple__ = version_tuple = (5, 0, 2)
@@ -157,7 +157,7 @@ class Sensor(Instrument):
157
157
  self.unit = "l/100 mi"
158
158
  self.convert = True
159
159
  elif self.unit == "kWh/100 km":
160
- self.unit = "kWh/100 mi"
160
+ self.unit = "mi/kWh"
161
161
  self.convert = True
162
162
  elif self.unit and scandinavian_miles:
163
163
  if self.unit == "km":
@@ -194,8 +194,10 @@ class Sensor(Instrument):
194
194
  if "mi" in self.unit:
195
195
  if self.unit in ["mi", "mi/h"]:
196
196
  return round(int(val) * 0.6213712)
197
- if "gal/100 mi" in self.unit or "kWh/100 mi" in self.unit:
197
+ if "gal/100 mi" in self.unit:
198
198
  return round(val * 0.4251438, 1)
199
+ if "mi/kWh" in self.unit:
200
+ return round((100 / val) * 0.6213712, 1)
199
201
  if "°F" in self.unit:
200
202
  return round((val * 9 / 5) + 32, 1)
201
203
  if self.unit in ["mil", "mil/h"]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: volkswagencarnet
3
- Version: 5.0.1
3
+ Version: 5.0.2
4
4
  Summary: Communicate with Volkswagen Connect
5
5
  Home-page: https://github.com/robinostlund/volkswagencarnet
6
6
  Author: Robin Ostlund
@@ -1,12 +1,12 @@
1
1
  volkswagencarnet/__init__.py,sha256=ndlRBXCUPW7GKbbf-RdChs3xD61yE1c6aNxoYBXDBtQ,39
2
- volkswagencarnet/version.py,sha256=JvW7iE7HU5WJ7w8sJRljbNkHyU5yXDp5FspBFoPj9uI,411
2
+ volkswagencarnet/version.py,sha256=XpEdLH1n9zphqFEJmXrxth3XdpYOdPTvORCsVZ725cQ,411
3
3
  volkswagencarnet/vw_connection.py,sha256=m4Nu6WW6FZspmdQGlXi_5RDfZdkJkSflJb-yZR23rKk,45931
4
4
  volkswagencarnet/vw_const.py,sha256=aE45XXuKpQxQS4_keoUD3kZBGu8jycdhm3E009XLF6c,4002
5
- volkswagencarnet/vw_dashboard.py,sha256=_OWqdhluWkQwJXEldSaeXn-D2b9PfDtLCzp-YH6lH_g,52078
5
+ volkswagencarnet/vw_dashboard.py,sha256=oLUW_6qF2ZRlBWsqGVoPP7UQlyA3ZcxgahMEqKxJX4o,52140
6
6
  volkswagencarnet/vw_utilities.py,sha256=prdIyuU5yvs4PzSabzgqJOsGL-ApGDnyvIZlJZg7DYY,3559
7
7
  volkswagencarnet/vw_vehicle.py,sha256=X2UvK8zwQOT13EtHbtO9HGwrtt0n7aX7hi1j_U0FjYY,154888
8
- volkswagencarnet-5.0.1.dist-info/LICENSE.txt,sha256=5roVEYR3e-kTlq73yMQgO18VDR4w4JiSKdHejEJnT0s,34876
9
- volkswagencarnet-5.0.1.dist-info/METADATA,sha256=6n3h4HOCTu7_-GBIq_Ar5E_pBheoi-r6prKvrbfA8k0,6456
10
- volkswagencarnet-5.0.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
11
- volkswagencarnet-5.0.1.dist-info/top_level.txt,sha256=tUJNf33PP5Ln_Zc9N86ThKbe8BKJmW60ZKABmfZL_18,17
12
- volkswagencarnet-5.0.1.dist-info/RECORD,,
8
+ volkswagencarnet-5.0.2.dist-info/LICENSE.txt,sha256=5roVEYR3e-kTlq73yMQgO18VDR4w4JiSKdHejEJnT0s,34876
9
+ volkswagencarnet-5.0.2.dist-info/METADATA,sha256=MPrpcyvTOUejlOomQCXOgOHg59Y7ve0eAc8eGkBp2dw,6456
10
+ volkswagencarnet-5.0.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
11
+ volkswagencarnet-5.0.2.dist-info/top_level.txt,sha256=tUJNf33PP5Ln_Zc9N86ThKbe8BKJmW60ZKABmfZL_18,17
12
+ volkswagencarnet-5.0.2.dist-info/RECORD,,