Skip to content

Commit fa3f58d

Browse files
committed
Remove teslemetry cached endpoint
1 parent b5bc101 commit fa3f58d

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

tesla_fleet_api/teslemetry.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import aiohttp
44
from aiolimiter import AsyncLimiter
55

6-
from .const import LOGGER, Method, VehicleDataEndpoint
6+
from .const import LOGGER, Method
77
from .teslafleetapi import TeslaFleetApi
88

99
# Rate limit should be global, even if multiple instances are created
@@ -103,15 +103,6 @@ async def vehicle_force_refresh(self, vin: str) -> dict[str, Any]:
103103
f"api/force/{vin}",
104104
)
105105

106-
async def vehicle_data_cached(self, vin: str, endpoints: list[VehicleDataEndpoint | str] | None = None,) -> dict[str, Any]:
107-
"""Get cached vehicle data."""
108-
endpoint_payload = ";".join(endpoints) if endpoints else None
109-
return await self._request(
110-
Method.GET,
111-
f"api/x/vehicles/{vin}/vehicle_data",
112-
{"endpoints": endpoint_payload}
113-
)
114-
115106
async def _request(
116107
self,
117108
method: Method,

0 commit comments

Comments
 (0)