tesla-fleet-api 0.5.2__py3-none-any.whl → 0.5.4__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/teslemetry.py +13 -16
- tesla_fleet_api/vehicle.py +1 -1
- {tesla_fleet_api-0.5.2.dist-info → tesla_fleet_api-0.5.4.dist-info}/METADATA +1 -1
- {tesla_fleet_api-0.5.2.dist-info → tesla_fleet_api-0.5.4.dist-info}/RECORD +8 -8
- {tesla_fleet_api-0.5.2.dist-info → tesla_fleet_api-0.5.4.dist-info}/LICENSE +0 -0
- {tesla_fleet_api-0.5.2.dist-info → tesla_fleet_api-0.5.4.dist-info}/WHEEL +0 -0
- {tesla_fleet_api-0.5.2.dist-info → tesla_fleet_api-0.5.4.dist-info}/top_level.txt +0 -0
tesla_fleet_api/const.py
CHANGED
tesla_fleet_api/teslemetry.py
CHANGED
@@ -26,34 +26,31 @@ class Teslemetry(TeslaFleetApi):
|
|
26
26
|
)
|
27
27
|
self.rate_limit = rate_limit
|
28
28
|
|
29
|
-
async def ping(self) -> bool:
|
29
|
+
async def ping(self) -> dict[str, bool]:
|
30
30
|
"""Send a ping."""
|
31
|
-
return (
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
)
|
36
|
-
).get("response", False)
|
31
|
+
return await self._request(
|
32
|
+
Method.GET,
|
33
|
+
"api/ping",
|
34
|
+
)
|
37
35
|
|
38
|
-
async def test(self) -> bool:
|
36
|
+
async def test(self) -> dict[str, bool]:
|
39
37
|
"""Test API Authentication."""
|
40
|
-
return (
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
)
|
45
|
-
).get("response", False)
|
38
|
+
return await self._request(
|
39
|
+
Method.GET,
|
40
|
+
"api/test",
|
41
|
+
)
|
46
42
|
|
47
|
-
async def metadata(self,
|
43
|
+
async def metadata(self, update_region=True) -> dict[str, Any]:
|
48
44
|
"""Test API Authentication."""
|
49
45
|
resp = await self._request(
|
50
46
|
Method.GET,
|
51
47
|
"api/metadata",
|
52
48
|
)
|
53
|
-
if
|
49
|
+
if update_region and "region" in resp:
|
54
50
|
self.region = resp["region"].lower()
|
55
51
|
self.server = f"https://{self.region}.teslemetry.com"
|
56
52
|
LOGGER.debug("Using server %s", self.server)
|
53
|
+
return resp
|
57
54
|
|
58
55
|
async def find_server(self):
|
59
56
|
"""Find the server URL for the Tesla Fleet API."""
|
tesla_fleet_api/vehicle.py
CHANGED
@@ -432,7 +432,7 @@ class Vehicle:
|
|
432
432
|
return await self._request(
|
433
433
|
Method.POST,
|
434
434
|
f"api/1/vehicles/{vehicle_tag}/command/set_scheduled_departure",
|
435
|
-
json={"enable": enable, "
|
435
|
+
json={"enable": enable, "departure_time": time},
|
436
436
|
)
|
437
437
|
|
438
438
|
async def set_sentry_mode(self, vehicle_tag: str | int, on: bool) -> dict[str, Any]:
|
@@ -1,19 +1,19 @@
|
|
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=0TIQ8dYpCwZAzvj062WI-wGrHSrgeMyyKJl2kstpZdE,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
|
7
7
|
tesla_fleet_api/partner.py,sha256=1vIBUaxKLIfqcC0X6VXZN0dMAzj_CLNPUMjA6QVqZ1k,1223
|
8
8
|
tesla_fleet_api/teslafleetapi.py,sha256=ErPfOz4M4WERrOlo_a_1ssVPcOIGeiBpbxd4vFJH_x4,4929
|
9
9
|
tesla_fleet_api/teslafleetoauth.py,sha256=BmRAuwcgFMBo2_3AJzS3QTBm_cP9xt4yoz4vKjwgmsw,3501
|
10
|
-
tesla_fleet_api/teslemetry.py,sha256=
|
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=
|
13
|
+
tesla_fleet_api/vehicle.py,sha256=9u_dOBTnrzWOm7rKnUfYBzuilCiOzXc1SOmC6aK9ZvA,31993
|
14
14
|
tesla_fleet_api/vehiclespecific.py,sha256=C9gCPGZphzcnDPwyX5HR1ZCEC4IWqdv5ATccHqvFryQ,20817
|
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.
|
15
|
+
tesla_fleet_api-0.5.4.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
16
|
+
tesla_fleet_api-0.5.4.dist-info/METADATA,sha256=3GQrXCzp64-df1LymgagA0O-bNwCaJytdjFgf7XV_IY,3961
|
17
|
+
tesla_fleet_api-0.5.4.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
18
|
+
tesla_fleet_api-0.5.4.dist-info/top_level.txt,sha256=jeNbog_1saXBFrGpom9WyPWmilxsyP3szL_G7JLWQfM,16
|
19
|
+
tesla_fleet_api-0.5.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|