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: