Skip to content

Commit

Permalink
Fix seat_heating_activated being optional (#51)
Browse files Browse the repository at this point in the history
I guess when the car doesn't have heated seats.

Fixes skodaconnect/homeassistant-myskoda#43
  • Loading branch information
dvx76 authored Sep 28, 2024
1 parent b90fe0f commit 8e608bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions myskoda/models/air_conditioning.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ class AirConditioning(DataClassORJSONMixin):
estimated_date_time_to_reach_target_temperature: datetime = field(
metadata=field_options(alias="estimatedDateTimeToReachTargetTemperature")
)
seat_heating_activated: SeatHeating = field(
metadata=field_options(alias="seatHeatingActivated")
)
state: AirConditioningState
steering_wheel_position: Side = field(metadata=field_options(alias="steeringWheelPosition"))
window_heating_enabled: bool = field(metadata=field_options(alias="windowHeatingEnabled"))
window_heating_state: WindowHeatingState = field(
metadata=field_options(alias="windowHeatingState")
)
seat_heating_activated: SeatHeating | None = field(
default=None, metadata=field_options(alias="seatHeatingActivated")
)
target_temperature: TargetTemperature | None = field(
default=None, metadata=field_options(alias="targetTemperature")
)

0 comments on commit 8e608bc

Please sign in to comment.