From fa3f58d2bcf3419e7fc2012e72f0375ed4e2c4e6 Mon Sep 17 00:00:00 2001 From: Brett Date: Wed, 1 Jan 2025 20:45:05 +1000 Subject: [PATCH] Remove teslemetry cached endpoint --- tesla_fleet_api/teslemetry.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/tesla_fleet_api/teslemetry.py b/tesla_fleet_api/teslemetry.py index 44ad025..4bcd9f4 100644 --- a/tesla_fleet_api/teslemetry.py +++ b/tesla_fleet_api/teslemetry.py @@ -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 @@ -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,