From d2d05be9aa1c8faa3fbe28d63119bc95a167932f Mon Sep 17 00:00:00 2001 From: Brett Date: Mon, 5 Feb 2024 16:46:13 +1000 Subject: [PATCH] Fix endpoints type on vehicle_data --- setup.py | 2 +- tesla_fleet_api/vehiclespecific.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 65faf11..5bbbd82 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="tesla_fleet_api", - version="0.2.6", + version="0.2.7", author="Brett Adams", author_email="hello@teslemetry.com", description="Tesla Fleet API library for Python", diff --git a/tesla_fleet_api/vehiclespecific.py b/tesla_fleet_api/vehiclespecific.py index 52c6122..b8bd681 100644 --- a/tesla_fleet_api/vehiclespecific.py +++ b/tesla_fleet_api/vehiclespecific.py @@ -399,7 +399,7 @@ async def vehicle(self) -> dict[str, Any]: async def vehicle_data( self, - endpoints: VehicleDataEndpoints | str | None = None, + endpoints: list[VehicleDataEndpoints] | str | None = None, ) -> dict[str, Any]: """Makes a live call to the vehicle. This may return cached data if the vehicle is offline. For vehicles running firmware versions 2023.38+, location_data is required to fetch vehicle location. This will result in a location sharing icon to show on the vehicle UI.""" return await self._parent.vehicle_data(self.vin, endpoints)