tesla-fleet-api 0.3.1__py3-none-any.whl → 0.4.0__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/charging.py +3 -5
- tesla_fleet_api/const.py +34 -15
- tesla_fleet_api/energy.py +11 -11
- tesla_fleet_api/exceptions.py +11 -11
- tesla_fleet_api/partner.py +4 -4
- tesla_fleet_api/teslafleetapi.py +5 -5
- tesla_fleet_api/teslafleetoauth.py +5 -5
- tesla_fleet_api/teslemetry.py +4 -4
- tesla_fleet_api/user.py +6 -6
- tesla_fleet_api/vehicle.py +128 -115
- tesla_fleet_api/vehiclespecific.py +16 -16
- {tesla_fleet_api-0.3.1.dist-info → tesla_fleet_api-0.4.0.dist-info}/METADATA +1 -1
- tesla_fleet_api-0.4.0.dist-info/RECORD +18 -0
- tesla_fleet_api-0.3.1.dist-info/RECORD +0 -18
- {tesla_fleet_api-0.3.1.dist-info → tesla_fleet_api-0.4.0.dist-info}/LICENSE +0 -0
- {tesla_fleet_api-0.3.1.dist-info → tesla_fleet_api-0.4.0.dist-info}/WHEEL +0 -0
- {tesla_fleet_api-0.3.1.dist-info → tesla_fleet_api-0.4.0.dist-info}/top_level.txt +0 -0
@@ -1,12 +1,12 @@
|
|
1
1
|
from typing import Any
|
2
2
|
from .const import (
|
3
|
-
|
3
|
+
Trunk,
|
4
4
|
ClimateKeeperMode,
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
CabinOverheatProtectionTemp,
|
6
|
+
VehicleDataEndpoint,
|
7
|
+
SunRoofCommand,
|
8
|
+
WindowCommand,
|
9
|
+
DeviceType,
|
10
10
|
)
|
11
11
|
|
12
12
|
|
@@ -17,7 +17,7 @@ class VehicleSpecific:
|
|
17
17
|
self._parent = parent
|
18
18
|
self.vin = vin
|
19
19
|
|
20
|
-
async def actuate_trunk(self, which_trunk:
|
20
|
+
async def actuate_trunk(self, which_trunk: Trunk | str) -> dict[str, Any]:
|
21
21
|
"""Controls the front or rear trunk."""
|
22
22
|
return await self._parent.actuate_trunk(self.vin, which_trunk)
|
23
23
|
|
@@ -160,11 +160,11 @@ class VehicleSpecific:
|
|
160
160
|
)
|
161
161
|
|
162
162
|
async def remote_seat_heater_request(
|
163
|
-
self, seat_position: int,
|
163
|
+
self, seat_position: int, seat_heater_level: int
|
164
164
|
) -> dict[str, Any]:
|
165
165
|
"""Sets seat heating."""
|
166
166
|
return await self._parent.remote_seat_heater_request(
|
167
|
-
self.vin, seat_position,
|
167
|
+
self.vin, seat_position, seat_heater_level
|
168
168
|
)
|
169
169
|
|
170
170
|
async def remote_start_drive(self) -> dict[str, Any]:
|
@@ -222,7 +222,7 @@ class VehicleSpecific:
|
|
222
222
|
return await self._parent.set_climate_keeper_mode(self.vin, climate_keeper_mode)
|
223
223
|
|
224
224
|
async def set_cop_temp(
|
225
|
-
self, cop_temp:
|
225
|
+
self, cop_temp: CabinOverheatProtectionTemp | int
|
226
226
|
) -> dict[str, Any]:
|
227
227
|
"""Adjusts the Cabin Overheat Protection temperature (COP)."""
|
228
228
|
return await self._parent.set_cop_temp(self.vin, cop_temp)
|
@@ -283,7 +283,7 @@ class VehicleSpecific:
|
|
283
283
|
"""Sets the maximum speed allowed when Speed Limit Mode is active."""
|
284
284
|
return await self._parent.speed_limit_set_limit(self.vin, limit_mph)
|
285
285
|
|
286
|
-
async def sun_roof_control(self, state: str |
|
286
|
+
async def sun_roof_control(self, state: str | SunRoofCommand) -> dict[str, Any]:
|
287
287
|
"""Controls the panoramic sunroof on the Model S."""
|
288
288
|
return await self._parent.sun_roof_control(self.vin, state)
|
289
289
|
|
@@ -293,7 +293,7 @@ class VehicleSpecific:
|
|
293
293
|
|
294
294
|
async def trigger_homelink(
|
295
295
|
self,
|
296
|
-
token: str,
|
296
|
+
token: str | None = None,
|
297
297
|
lat: float | None = None,
|
298
298
|
lon: float | None = None,
|
299
299
|
) -> dict[str, Any]:
|
@@ -311,7 +311,7 @@ class VehicleSpecific:
|
|
311
311
|
|
312
312
|
async def window_control(
|
313
313
|
self,
|
314
|
-
command: str |
|
314
|
+
command: str | WindowCommand,
|
315
315
|
lat: float | None = None,
|
316
316
|
lon: float | None = None,
|
317
317
|
) -> dict[str, Any]:
|
@@ -399,13 +399,13 @@ class VehicleSpecific:
|
|
399
399
|
|
400
400
|
async def vehicle_data(
|
401
401
|
self,
|
402
|
-
endpoints: list[
|
402
|
+
endpoints: list[VehicleDataEndpoint] | str | None = None,
|
403
403
|
) -> dict[str, Any]:
|
404
404
|
"""Makes a live call to the vehicle. This may return cached data if the vehicle is offline. For vehicles running firmware versions 2023.38+, location_data is required to fetch vehicle location. This will result in a location sharing icon to show on the vehicle UI."""
|
405
405
|
return await self._parent.vehicle_data(self.vin, endpoints)
|
406
406
|
|
407
407
|
async def vehicle_subscriptions(
|
408
|
-
self, device_token: str, device_type:
|
408
|
+
self, device_token: str, device_type: DeviceType | str
|
409
409
|
) -> dict[str, Any]:
|
410
410
|
"""Returns the list of vehicles for which this mobile device currently subscribes to push notifications."""
|
411
411
|
return await self._parent.vehicle_subscriptions(
|
@@ -413,7 +413,7 @@ class VehicleSpecific:
|
|
413
413
|
)
|
414
414
|
|
415
415
|
async def vehicle_subscriptions_set(
|
416
|
-
self, device_token: str, device_type:
|
416
|
+
self, device_token: str, device_type: DeviceType | str
|
417
417
|
) -> dict[str, Any]:
|
418
418
|
"""Allows a mobile device to specify which vehicles to receive push notifications from."""
|
419
419
|
return await self._parent.vehicle_subscriptions_set(
|
@@ -0,0 +1,18 @@
|
|
1
|
+
tesla_fleet_api/__init__.py,sha256=IJ4k3VoTwnVRO1R-tN7EX8_Jm8VTwlCPiXUykM8y7Ek,348
|
2
|
+
tesla_fleet_api/charging.py,sha256=N_mc8axrXj3iduqLj_jCt4Vx86tHqe3xqQT4R1R7HvU,1689
|
3
|
+
tesla_fleet_api/const.py,sha256=9OYgL6Ws7h8Q6HM-voS-Us1jYBU2BgDxUW1VRfN1uRo,9333
|
4
|
+
tesla_fleet_api/energy.py,sha256=urHHxLaMVrQ8VEFZ6OVf27wN0Cy_dbWzNzxziJt476o,5565
|
5
|
+
tesla_fleet_api/energyspecific.py,sha256=v1uRSx0uDOnKb7YLAy7zAOler1AESO0v9hK772ByxHM,3620
|
6
|
+
tesla_fleet_api/exceptions.py,sha256=GqG3U2cclO06193Lu3iO-_f628U3rmAkGHJftpQCC34,9102
|
7
|
+
tesla_fleet_api/partner.py,sha256=tQ0Zu9Co4Fs5sZdMAEsJnuoGAoNQP6sRpuDIDIop_04,1157
|
8
|
+
tesla_fleet_api/teslafleetapi.py,sha256=8VGA0XY5a9oBCvqmhmgQCW7EmSN_h3xP5oFsgm5xHsk,4272
|
9
|
+
tesla_fleet_api/teslafleetoauth.py,sha256=gf1mLQLaYgAxtBrH-BgqZ7paYFYEX__eTL7MMEk2vb8,3535
|
10
|
+
tesla_fleet_api/teslemetry.py,sha256=cqjrDzuqGlcN70eSU0JZ896HB0BT6MsUzmwmyKH_5lA,1220
|
11
|
+
tesla_fleet_api/user.py,sha256=TZE2oh-n5zrhKXmGRuiNL9voKVODD7rBhGE_IObYVGA,1179
|
12
|
+
tesla_fleet_api/vehicle.py,sha256=ZLzb-hB_jyFx6k0Ii2kKCDJ3GWIlZXh60pkvXdwHGrU,31955
|
13
|
+
tesla_fleet_api/vehiclespecific.py,sha256=6VHxOBp4jp0CgqpJsNCsDRuMeGNKTWBSg3S2K8cMQT0,20762
|
14
|
+
tesla_fleet_api-0.4.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
15
|
+
tesla_fleet_api-0.4.0.dist-info/METADATA,sha256=GxZ5CTkodxO6veKhrfhk5SgqxeJuVPXvAS9LQPYrbrU,3152
|
16
|
+
tesla_fleet_api-0.4.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
17
|
+
tesla_fleet_api-0.4.0.dist-info/top_level.txt,sha256=jeNbog_1saXBFrGpom9WyPWmilxsyP3szL_G7JLWQfM,16
|
18
|
+
tesla_fleet_api-0.4.0.dist-info/RECORD,,
|
@@ -1,18 +0,0 @@
|
|
1
|
-
tesla_fleet_api/__init__.py,sha256=IJ4k3VoTwnVRO1R-tN7EX8_Jm8VTwlCPiXUykM8y7Ek,348
|
2
|
-
tesla_fleet_api/charging.py,sha256=p7xNxYXVCmbm6cAWQRtrPBwthFdqkG50eM2N9QvBsUM,1701
|
3
|
-
tesla_fleet_api/const.py,sha256=vghX97qjmURtFQJLrVHU-E3mRTMSCgwZVINrmnyDCPY,9070
|
4
|
-
tesla_fleet_api/energy.py,sha256=QGFfEf3ftczTllVaT9m_QsQHabv0NSXKdPvVRPwrTa0,5576
|
5
|
-
tesla_fleet_api/energyspecific.py,sha256=v1uRSx0uDOnKb7YLAy7zAOler1AESO0v9hK772ByxHM,3620
|
6
|
-
tesla_fleet_api/exceptions.py,sha256=-i3u5L2mIsOBM0wAUW2VaYUuPHzM89KdwGXor_-An0g,9113
|
7
|
-
tesla_fleet_api/partner.py,sha256=cih47ooWG15s8WISNDs8ZKcrJXu_yIdY_3VF5B0-p44,1161
|
8
|
-
tesla_fleet_api/teslafleetapi.py,sha256=9NtWDMhdJD9ZnRTBemDTiG48jlqI28tl9FJLUX-ENcs,4278
|
9
|
-
tesla_fleet_api/teslafleetoauth.py,sha256=ebZA0MDudFQbarH3_BwSCo-Aryz82DZXljz-fAj_uvk,3541
|
10
|
-
tesla_fleet_api/teslemetry.py,sha256=s7vsNQ1mhHfkcmjZ-fhwbjk-H1B8NyyfE-4IH5_rCUQ,1224
|
11
|
-
tesla_fleet_api/user.py,sha256=3VWsLjrOhU0qTMG3LzPBAnkENdf7RcDvXsdWsOyXRHI,1185
|
12
|
-
tesla_fleet_api/vehicle.py,sha256=_CRqgP1Niv6RvQBx67Y7cdux8-Q23l8_QRLwSF2up18,31811
|
13
|
-
tesla_fleet_api/vehiclespecific.py,sha256=aSyLIsoErvHp3s4YQgV9JNMVKqdxNNMHHAvjpWBCA8I,20737
|
14
|
-
tesla_fleet_api-0.3.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
15
|
-
tesla_fleet_api-0.3.1.dist-info/METADATA,sha256=nW1-a3yLK7blkkX69SABstxNGDSnT4QKau9jq7ds_mU,3152
|
16
|
-
tesla_fleet_api-0.3.1.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
17
|
-
tesla_fleet_api-0.3.1.dist-info/top_level.txt,sha256=jeNbog_1saXBFrGpom9WyPWmilxsyP3szL_G7JLWQfM,16
|
18
|
-
tesla_fleet_api-0.3.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|