Skip to content

Commit

Permalink
fix: support air_temperature with ccs2 (#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwillemsen committed Feb 5, 2024
1 parent 92380f1 commit 740f4d3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion hyundai_kia_connect_api/KiaUvoApiEU.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,13 @@ def _update_vehicle_properties_ccs2(self, vehicle: Vehicle, state: dict) -> None

vehicle.engine_is_running = get_child_value(state, "DrivingReady")

# TODO: vehicle.air_temperature = get_child_value(state, "Cabin.HVAC.Driver.Temperature.Value")
air_temp = get_child_value(
state,
"Cabin.HVAC.Row1.Driver.Temperature.Value",
)

if air_temp != "OFF":
vehicle.air_temperature = (air_temp, TEMPERATURE_UNITS[1])

defrost_is_on = get_child_value(state, "Body.Windshield.Front.Defog.State")
if defrost_is_on in [0, 2]:
Expand Down

0 comments on commit 740f4d3

Please sign in to comment.