Skip to content

Commit

Permalink
Remove teslemetry cached endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Bre77 committed Jan 1, 2025
1 parent b5bc101 commit fa3f58d
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions tesla_fleet_api/teslemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import aiohttp
from aiolimiter import AsyncLimiter

from .const import LOGGER, Method, VehicleDataEndpoint
from .const import LOGGER, Method
from .teslafleetapi import TeslaFleetApi

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

async def vehicle_data_cached(self, vin: str, endpoints: list[VehicleDataEndpoint | str] | None = None,) -> dict[str, Any]:
"""Get cached vehicle data."""
endpoint_payload = ";".join(endpoints) if endpoints else None
return await self._request(
Method.GET,
f"api/x/vehicles/{vin}/vehicle_data",
{"endpoints": endpoint_payload}
)

async def _request(
self,
method: Method,
Expand Down

0 comments on commit fa3f58d

Please sign in to comment.