Skip to content

Commit

Permalink
fix: remove exception on last action tracking (#721)
Browse files Browse the repository at this point in the history
#564   Makes it less noisy on breaking kia_uvo.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
cdnninja and pre-commit-ci[bot] authored Feb 16, 2025
1 parent 5a03857 commit c8460a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hyundai_kia_connect_api/KiaUvoApiEU.py
Original file line number Diff line number Diff line change
Expand Up @@ -1784,4 +1784,5 @@ def check_action_status(

# if iterate the whole notifications list and
# can't find the action, raise an exception
raise APIError(f"No action found with ID {action_id}")
# Old code: raise APIError(f"No action found with ID {action_id}")
return OrderStatus.UNKNOWN
2 changes: 2 additions & 0 deletions hyundai_kia_connect_api/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ class OrderStatus(Enum):
# no response received from vehicle.
# no way to know if the order was executed, but most likely not
TIMEOUT = "TIMEOUT"
# Used when we don't know the status of the order
UNKNOWN = "UNKNOWN"


class WINDOW_STATE(IntEnum):
Expand Down

0 comments on commit c8460a4

Please sign in to comment.