diff --git a/hyundai_kia_connect_api/ApiImpl.py b/hyundai_kia_connect_api/ApiImpl.py index 357769eb..5a37f574 100644 --- a/hyundai_kia_connect_api/ApiImpl.py +++ b/hyundai_kia_connect_api/ApiImpl.py @@ -10,7 +10,13 @@ from requests.exceptions import JSONDecodeError from .Token import Token from .Vehicle import Vehicle -from .const import WINDOW_STATE, CHARGE_PORT_ACTION, OrderStatus, DOMAIN, VALET_MODE_ACTION +from .const import ( + WINDOW_STATE, + CHARGE_PORT_ACTION, + OrderStatus, + DOMAIN, + VALET_MODE_ACTION, +) from .utils import get_child_value _LOGGER = logging.getLogger(__name__) @@ -214,14 +220,10 @@ def schedule_charging_and_climate( pass def valet_mode_action( - self, - token: Token, - vehicle: Vehicle, - action: VALET_MODE_ACTION + self, token: Token, vehicle: Vehicle, action: VALET_MODE_ACTION ) -> str: """ feature only available for some regions. Activate or Deactivate valet mode. Returns the tracking ID """ pass - diff --git a/hyundai_kia_connect_api/KiaUvoApiEU.py b/hyundai_kia_connect_api/KiaUvoApiEU.py index 4dc9103d..4353adf3 100644 --- a/hyundai_kia_connect_api/KiaUvoApiEU.py +++ b/hyundai_kia_connect_api/KiaUvoApiEU.py @@ -1406,7 +1406,9 @@ def set_default_departure_options( token.device_id = self._get_device_id(self._get_stamp()) return response["msgId"] - def valet_mode_action(self, token: Token, vehicle: Vehicle, action: VALET_MODE_ACTION) -> str: + def valet_mode_action( + self, token: Token, vehicle: Vehicle, action: VALET_MODE_ACTION + ) -> str: url = self.SPA_API_URL_V2 + "vehicles/" + vehicle.id + "/control/valet" payload = {"action": action.value}