From c517fcd6a8142725c33f317cffcc23722c5bac74 Mon Sep 17 00:00:00 2001 From: Brett Date: Sun, 14 Jan 2024 12:24:23 +1000 Subject: [PATCH] Fix set_temp to float --- tesla_fleet_api/vehiclespecific.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tesla_fleet_api/vehiclespecific.py b/tesla_fleet_api/vehiclespecific.py index 046f57a..28444c5 100644 --- a/tesla_fleet_api/vehiclespecific.py +++ b/tesla_fleet_api/vehiclespecific.py @@ -245,7 +245,9 @@ async def set_sentry_mode(self, on: bool) -> dict[str, Any]: """Enables and disables Sentry Mode. Sentry Mode allows customers to watch the vehicle cameras live from the mobile app, as well as record sentry events.""" return await self._parent.set_sentry_mode(self.vin, on) - async def set_temps(self, driver_temp: int, passenger_temp: int) -> dict[str, Any]: + async def set_temps( + self, driver_temp: float, passenger_temp: float + ) -> dict[str, Any]: """Sets the driver and/or passenger-side cabin temperature (and other zones if sync is enabled).""" return await self._parent.set_temps(self.vin, driver_temp, passenger_temp)