Skip to content

Commit

Permalink
Fix set_temp to float
Browse files Browse the repository at this point in the history
  • Loading branch information
Bre77 committed Jan 14, 2024
1 parent 69f901a commit c517fcd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tesla_fleet_api/vehiclespecific.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit c517fcd

Please sign in to comment.