Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 10, 2024
1 parent 2dd6b1b commit 7e7463f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
14 changes: 8 additions & 6 deletions hyundai_kia_connect_api/ApiImpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down Expand Up @@ -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

4 changes: 3 additions & 1 deletion hyundai_kia_connect_api/KiaUvoApiEU.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 7e7463f

Please sign in to comment.