Skip to content

Commit

Permalink
fix: Removed possible decimals from get_hex_temp_into_index (#625)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjantoine committed Sep 19, 2024
1 parent 07d765d commit f75d5f4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hyundai_kia_connect_api/KiaUvoApiCA.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,10 @@ def _update_vehicle_properties_base(self, vehicle: Vehicle, state: dict) -> None
)
# Converts temp to usable number. Currently only support celsius.
# Future to do is check unit in case the care itself is set to F.
if get_child_value(state, "status.airTemp.value") != "OFF":
if (
get_child_value(state, "status.airTemp.value") != "OFF"
and get_child_value(state, "status.airTemp.value")[-1] == "H"
):
tempIndex = get_hex_temp_into_index(
get_child_value(state, "status.airTemp.value")
)
Expand Down

0 comments on commit f75d5f4

Please sign in to comment.