From c419a04c9988367e080b99ee45ad092e4f6d8b0e Mon Sep 17 00:00:00 2001 From: InTheDaylight14 <67400055+InTheDaylight14@users.noreply.github.com> Date: Mon, 5 Dec 2022 14:22:46 -0500 Subject: [PATCH] fix: fix valet mode parameter (#377) * wrong valet mode parameter name * docstring --- teslajsonpy/car.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teslajsonpy/car.py b/teslajsonpy/car.py index e451d89b..f0c20df6 100644 --- a/teslajsonpy/car.py +++ b/teslajsonpy/car.py @@ -1073,7 +1073,7 @@ 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: @@ -1081,7 +1081,7 @@ async def valet_mode(self, enable, pin=None) -> None: "SET_VALET_MODE", path_vars={"vehicle_id": self.id}, on=enable, - pin=pin, + password=pin, wake_if_asleep=True, ) else: