tesla-fleet-api 0.5.5__py3-none-any.whl → 0.5.6__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 +1 -1
- tesla_fleet_api/vehicle.py +18 -2
- tesla_fleet_api/vehiclespecific.py +20 -2
- {tesla_fleet_api-0.5.5.dist-info → tesla_fleet_api-0.5.6.dist-info}/METADATA +1 -1
- {tesla_fleet_api-0.5.5.dist-info → tesla_fleet_api-0.5.6.dist-info}/RECORD +8 -8
- {tesla_fleet_api-0.5.5.dist-info → tesla_fleet_api-0.5.6.dist-info}/LICENSE +0 -0
- {tesla_fleet_api-0.5.5.dist-info → tesla_fleet_api-0.5.6.dist-info}/WHEEL +0 -0
- {tesla_fleet_api-0.5.5.dist-info → tesla_fleet_api-0.5.6.dist-info}/top_level.txt +0 -0
tesla_fleet_api/const.py
CHANGED
tesla_fleet_api/vehicle.py
CHANGED
@@ -426,13 +426,29 @@ class Vehicle:
|
|
426
426
|
)
|
427
427
|
|
428
428
|
async def set_scheduled_departure(
|
429
|
-
self,
|
429
|
+
self,
|
430
|
+
vehicle_tag: str | int,
|
431
|
+
enable: bool = True,
|
432
|
+
preconditioning_enabled: bool = False,
|
433
|
+
preconditioning_weekdays_only: bool = False,
|
434
|
+
departure_time: int = 0,
|
435
|
+
off_peak_charging_enabled: bool = False,
|
436
|
+
off_peak_charging_weekdays_only: bool = False,
|
437
|
+
end_off_peak_time: int = 0,
|
430
438
|
) -> dict[str, Any]:
|
431
439
|
"""Sets a time at which departure should be completed. The time parameter is minutes after midnight (e.g: time=120 schedules departure for 2:00am vehicle local time)."""
|
432
440
|
return await self._request(
|
433
441
|
Method.POST,
|
434
442
|
f"api/1/vehicles/{vehicle_tag}/command/set_scheduled_departure",
|
435
|
-
json={
|
443
|
+
json={
|
444
|
+
"enable": enable,
|
445
|
+
"preconditioning_enabled": preconditioning_enabled,
|
446
|
+
"preconditioning_weekdays_only": preconditioning_weekdays_only,
|
447
|
+
"departure_time": departure_time,
|
448
|
+
"off_peak_charging_enabled": off_peak_charging_enabled,
|
449
|
+
"off_peak_charging_weekdays_only": off_peak_charging_weekdays_only,
|
450
|
+
"end_off_peak_time": end_off_peak_time,
|
451
|
+
},
|
436
452
|
)
|
437
453
|
|
438
454
|
async def set_sentry_mode(self, vehicle_tag: str | int, on: bool) -> dict[str, Any]:
|
@@ -243,9 +243,27 @@ class VehicleSpecific:
|
|
243
243
|
"""Sets a time at which charging should be completed. The time parameter is minutes after midnight (e.g: time=120 schedules charging for 2:00am vehicle local time)."""
|
244
244
|
return await self._parent.set_scheduled_charging(self.vin, enable, time)
|
245
245
|
|
246
|
-
async def set_scheduled_departure(
|
246
|
+
async def set_scheduled_departure(
|
247
|
+
self,
|
248
|
+
enable: bool = True,
|
249
|
+
preconditioning_enabled: bool = False,
|
250
|
+
preconditioning_weekdays_only: bool = False,
|
251
|
+
departure_time: int = 0,
|
252
|
+
off_peak_charging_enabled: bool = False,
|
253
|
+
off_peak_charging_weekdays_only: bool = False,
|
254
|
+
end_off_peak_time: int = 0,
|
255
|
+
) -> dict[str, Any]:
|
247
256
|
"""Sets a time at which departure should be completed. The time parameter is minutes after midnight (e.g: time=120 schedules departure for 2:00am vehicle local time)."""
|
248
|
-
return await self._parent.set_scheduled_departure(
|
257
|
+
return await self._parent.set_scheduled_departure(
|
258
|
+
self.vin,
|
259
|
+
enable,
|
260
|
+
preconditioning_enabled,
|
261
|
+
preconditioning_weekdays_only,
|
262
|
+
departure_time,
|
263
|
+
off_peak_charging_enabled,
|
264
|
+
off_peak_charging_weekdays_only,
|
265
|
+
end_off_peak_time,
|
266
|
+
)
|
249
267
|
|
250
268
|
async def set_sentry_mode(self, on: bool) -> dict[str, Any]:
|
251
269
|
"""Enables and disables Sentry Mode. Sentry Mode allows customers to watch the vehicle cameras live from the mobile app, as well as record sentry events."""
|
@@ -1,6 +1,6 @@
|
|
1
1
|
tesla_fleet_api/__init__.py,sha256=RL9KGtDjYwbBa5i6Lagzrya-yjvEE1EVfyge2lV49iI,375
|
2
2
|
tesla_fleet_api/charging.py,sha256=N_mc8axrXj3iduqLj_jCt4Vx86tHqe3xqQT4R1R7HvU,1689
|
3
|
-
tesla_fleet_api/const.py,sha256=
|
3
|
+
tesla_fleet_api/const.py,sha256=IyRFbFzt-YqRTf4RrOo9Lng-Vg9TrWjeeDkqT2nT-3o,9277
|
4
4
|
tesla_fleet_api/energy.py,sha256=Fgg4pdYc226WNOXHUnzBHbZoZ3jYLfN3GgjprazYLZA,5283
|
5
5
|
tesla_fleet_api/energyspecific.py,sha256=kICxdeDoWR9JHlgjHvnmjJ1ErLOWJT8bCSESoXo9axU,3732
|
6
6
|
tesla_fleet_api/exceptions.py,sha256=c6i_AegrLzlfrHxht_Z_xLl_kmxcd3DDJaSIcldcUo8,9171
|
@@ -10,10 +10,10 @@ tesla_fleet_api/teslafleetoauth.py,sha256=BmRAuwcgFMBo2_3AJzS3QTBm_cP9xt4yoz4vKj
|
|
10
10
|
tesla_fleet_api/teslemetry.py,sha256=jB2OlYAjjl98mW4p2-VGTVl5lpG1Qox57mXgsdrF1vg,2005
|
11
11
|
tesla_fleet_api/tessie.py,sha256=3ScOi8RaxHdvp6s5ZdSWYXwHZdey6IkX9SF1oohtSWk,2252
|
12
12
|
tesla_fleet_api/user.py,sha256=TZE2oh-n5zrhKXmGRuiNL9voKVODD7rBhGE_IObYVGA,1179
|
13
|
-
tesla_fleet_api/vehicle.py,sha256=
|
14
|
-
tesla_fleet_api/vehiclespecific.py,sha256=
|
15
|
-
tesla_fleet_api-0.5.
|
16
|
-
tesla_fleet_api-0.5.
|
17
|
-
tesla_fleet_api-0.5.
|
18
|
-
tesla_fleet_api-0.5.
|
19
|
-
tesla_fleet_api-0.5.
|
13
|
+
tesla_fleet_api/vehicle.py,sha256=8Ksg-IX5xuVGtACQrh1Su923oeLJqTAwq8ks9OPn6bA,32696
|
14
|
+
tesla_fleet_api/vehiclespecific.py,sha256=DgXr8apVFPT_Biv_B4p4Zh9cJhxqztkZYCS8g584JQo,21361
|
15
|
+
tesla_fleet_api-0.5.6.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
16
|
+
tesla_fleet_api-0.5.6.dist-info/METADATA,sha256=sxLsftqajoj-jxD7liRX_n4NIbfGgdw4A9FXd-ZkS5s,3961
|
17
|
+
tesla_fleet_api-0.5.6.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
18
|
+
tesla_fleet_api-0.5.6.dist-info/top_level.txt,sha256=jeNbog_1saXBFrGpom9WyPWmilxsyP3szL_G7JLWQfM,16
|
19
|
+
tesla_fleet_api-0.5.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|