tesla-fleet-api 0.5.9__py3-none-any.whl → 0.5.11__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.
tesla_fleet_api/const.py CHANGED
@@ -3,7 +3,7 @@
3
3
  from enum import Enum
4
4
  import logging
5
5
 
6
- VERSION = "0.5.9"
6
+ VERSION = "0.5.11"
7
7
  LOGGER = logging.getLogger(__package__)
8
8
  SERVERS = {
9
9
  "na": "https://fleet-api.prd.na.vn.cloud.tesla.com",
@@ -24,10 +24,10 @@ class Vehicle:
24
24
  def specific(self, vehicle_tag: str | int) -> VehicleSpecific:
25
25
  """Creates a class for each vehicle."""
26
26
  return VehicleSpecific(self, vehicle_tag)
27
-
27
+
28
28
  def pre2021(self, vin: str) -> bool:
29
- """Checks if a vehicle is pre-2021."""
30
- return vin[9] <= "L"
29
+ """Checks if a vehicle is a pre-2021 model S or X."""
30
+ return vin[9] <= "L" and vin[3] in ["S", "X"]
31
31
 
32
32
  async def actuate_trunk(
33
33
  self, vehicle_tag: str | int, which_trunk: Trunk | str
@@ -17,7 +17,7 @@ class VehicleSpecific:
17
17
  self._parent = parent
18
18
  self.vin = vin
19
19
 
20
-
20
+ @property
21
21
  def pre2021(self) -> bool:
22
22
  """Checks if a vehicle is pre-2021."""
23
23
  return self._parent.pre2021(self.vin)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tesla_fleet_api
3
- Version: 0.5.9
3
+ Version: 0.5.11
4
4
  Summary: Tesla Fleet API library for Python
5
5
  Home-page: https://github.com/Teslemetry/tesla_fleet_api
6
6
  Author: Brett Adams
@@ -1,6 +1,6 @@
1
1
  tesla_fleet_api/__init__.py,sha256=0MON9vh3AShIiX16FZ6NU3yZ7kyXFh5GxA0rY8CzVRM,584
2
2
  tesla_fleet_api/charging.py,sha256=N_mc8axrXj3iduqLj_jCt4Vx86tHqe3xqQT4R1R7HvU,1689
3
- tesla_fleet_api/const.py,sha256=WSkeHUHEDtTOePOeCtvfsEE8N9Yn8dN8iv-Gj-TDiPM,9277
3
+ tesla_fleet_api/const.py,sha256=ucSTKMQztiOc2hvibaa1r1f0vgnAK48juowKcu1Aeg4,9278
4
4
  tesla_fleet_api/energy.py,sha256=kE-HDupzhgatIsizJoer1MAALP-wH6jjjGliiRQN0Os,5285
5
5
  tesla_fleet_api/energyspecific.py,sha256=kICxdeDoWR9JHlgjHvnmjJ1ErLOWJT8bCSESoXo9axU,3732
6
6
  tesla_fleet_api/exceptions.py,sha256=Wh9roGPYB9oBGgEEfxMDay5A7RkPy8JFKloKPStGQ2Y,9211
@@ -10,10 +10,10 @@ tesla_fleet_api/teslafleetoauth.py,sha256=FfLnuqZMxF2HsZ5miLNtm3pRwKDoQKi2GD-oXg
10
10
  tesla_fleet_api/teslemetry.py,sha256=XOqm7SaakooJSNXEasJI_tRoCIyiFCD6n_PCx9U_D9g,2107
11
11
  tesla_fleet_api/tessie.py,sha256=ZttWuDdQOuTFO4k-BMq7fXKP3Nb4Dsxk3gFJprHHsco,2214
12
12
  tesla_fleet_api/user.py,sha256=TZE2oh-n5zrhKXmGRuiNL9voKVODD7rBhGE_IObYVGA,1179
13
- tesla_fleet_api/vehicle.py,sha256=3MF8KN3BjY2dQxmu6-hrrVxrXxI8iQF-rBS8v89ruUw,32835
14
- tesla_fleet_api/vehiclespecific.py,sha256=Weadm-IU9vsL5JCwXilaz3Yrwxb1iZdsdmGxuUHMxMA,21493
15
- tesla_fleet_api-0.5.9.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
16
- tesla_fleet_api-0.5.9.dist-info/METADATA,sha256=tZN2WjjUJhlQDApuJOkqL1PB2RRZtlQPoudYWhuDSg4,3961
17
- tesla_fleet_api-0.5.9.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
18
- tesla_fleet_api-0.5.9.dist-info/top_level.txt,sha256=jeNbog_1saXBFrGpom9WyPWmilxsyP3szL_G7JLWQfM,16
19
- tesla_fleet_api-0.5.9.dist-info/RECORD,,
13
+ tesla_fleet_api/vehicle.py,sha256=qM0lD4JnZOrlqHCLnXEpTQoVGUTiWr--tdTB8wKJrfA,32871
14
+ tesla_fleet_api/vehiclespecific.py,sha256=Oaz5InhWwXuKgyoQSYWpLLsMPjZ2iF0bShlnDLxEk5k,21506
15
+ tesla_fleet_api-0.5.11.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
16
+ tesla_fleet_api-0.5.11.dist-info/METADATA,sha256=RnaxIZuwnu1okknVk21gelBgnPdozag1olIIAq0lUao,3962
17
+ tesla_fleet_api-0.5.11.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
18
+ tesla_fleet_api-0.5.11.dist-info/top_level.txt,sha256=jeNbog_1saXBFrGpom9WyPWmilxsyP3szL_G7JLWQfM,16
19
+ tesla_fleet_api-0.5.11.dist-info/RECORD,,