Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bre77 committed Oct 9, 2024
1 parent 3d4e075 commit 0fbef99
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions tesla_fleet_api/vehiclesigned.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
MediaPreviousTrack,
MediaPreviousFavorite,
)
from .pb2.vehicle_pb2 import GuestMode, ClimateState
from .pb2.vehicle_pb2 import VehicleState, ClimateState
from .pb2.vcsec_pb2 import (
UnsignedMessage,
RKEAction_E,
Expand All @@ -105,8 +105,8 @@
LatLong,
PreconditioningTimes,
OffPeakChargingTimes,
ChargeSchedule,
PreconditionSchedule,
# ChargeSchedule,
# PreconditionSchedule,
)

if TYPE_CHECKING:
Expand Down Expand Up @@ -465,7 +465,7 @@ async def guest_mode(self, enable: bool) -> dict[str, Any]:
return await self._sendInfotainment(
Action(
vehicleAction=VehicleAction(
guestModeAction=GuestMode(GuestModeActive=enable)
guestModeAction=VehicleState.GuestMode(GuestModeActive=enable)
)
)
)
Expand Down Expand Up @@ -549,9 +549,11 @@ async def remote_auto_seat_climate_request(
Action(
vehicleAction=VehicleAction(
autoSeatClimateAction=AutoSeatClimateAction(
AutoSeatClimateAction.CarSeat(
on=auto_climate_on, seat_position=auto_seat_position
)
carseat=[
AutoSeatClimateAction.CarSeat(
on=auto_climate_on, seat_position=auto_seat_position
)
]
)
)
)
Expand All @@ -577,10 +579,12 @@ async def remote_seat_cooler_request(
Action(
vehicleAction=VehicleAction(
hvacSeatCoolerActions=HvacSeatCoolerActions(
HvacSeatCoolerActions.HvacSeatCoolerAction(
seat_cooler_level=seat_cooler_level + 1,
seat_position=seat_position,
)
hvacSeatCoolerAction=[
HvacSeatCoolerActions.HvacSeatCoolerAction(
seat_cooler_level=seat_cooler_level + 1,
seat_position=seat_position,
)
]
)
)
)
Expand Down Expand Up @@ -639,7 +643,9 @@ async def remote_seat_heater_request(
return await self._sendInfotainment(
Action(
vehicleAction=VehicleAction(
hvacSeatHeaterActions=HvacSeatHeaterActions(heater_action)
hvacSeatHeaterActions=HvacSeatHeaterActions(
hvacSeatHeaterAction=[heater_action]
)
)
)
)
Expand Down

0 comments on commit 0fbef99

Please sign in to comment.