Skip to content

Commit

Permalink
fix: fix valet mode parameter (#377)
Browse files Browse the repository at this point in the history
* wrong valet mode parameter name

* docstring
  • Loading branch information
InTheDaylight14 authored Dec 5, 2022
1 parent 35702fd commit c419a04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions teslajsonpy/car.py
Original file line number Diff line number Diff line change
Expand Up @@ -1073,15 +1073,15 @@ async def valet_mode(self, enable, pin=None) -> None:
Args
enable: True to activate, False to deactivate.
pin: optional, not required to activate or deactivate valet mode. Even with a previous PIN set. If you clear the PIN and activate Valet Mode without the parameter, you will only be able to deactivate it from your car's screen by signing into your Tesla account.
pin: optional, pin not required to activate or deactivate valet mode. Even with a previous PIN set. If you clear the PIN and activate Valet Mode without the parameter, you will only be able to deactivate it from your car's screen by signing into your Tesla account.
"""
if pin:
data = await self._send_command(
"SET_VALET_MODE",
path_vars={"vehicle_id": self.id},
on=enable,
pin=pin,
password=pin,
wake_if_asleep=True,
)
else:
Expand Down

0 comments on commit c419a04

Please sign in to comment.