Skip to content

Commit

Permalink
Add set_seat_cool function
Browse files Browse the repository at this point in the history
  • Loading branch information
atinsley committed Jun 19, 2024
1 parent 40660c9 commit d74a851
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions tessie_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from .climate import stop_climate
from .climate import set_temperature
from .climate import set_seat_heat
from .climate import set_seat_cool
from .climate import start_defrost
from .climate import stop_defrost
from .climate import start_steering_wheel_heater
Expand Down
23 changes: 23 additions & 0 deletions tessie_api/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,29 @@ async def set_seat_heat(
)


async def set_seat_cool(
session: aiohttp.ClientSession,
vin: str,
api_key: str,
seat: Seat,
level: int = 3,
retry_duration: int = 40,
wait_for_completion: bool = True,
) -> Dict[str, Any]:
return await tessieRequest(
session,
"GET",
f"/{vin}/command/set_seat_cool",
api_key,
params={
"seat": seat,
"level": level,
"retry_duration": retry_duration,
"wait_for_completion": str(wait_for_completion).lower(),
},
)


async def start_defrost(
session: aiohttp.ClientSession,
vin: str,
Expand Down

0 comments on commit d74a851

Please sign in to comment.