diff --git a/custom_components/nissan_carwings/coordinator.py b/custom_components/nissan_carwings/coordinator.py index 895a02b..23a60c9 100644 --- a/custom_components/nissan_carwings/coordinator.py +++ b/custom_components/nissan_carwings/coordinator.py @@ -203,10 +203,11 @@ def is_climate_pending_state_active(self) -> bool: climate_pending_state = self.config_entry.runtime_data.climate_pending_state climate_status: CarwingsLatestClimateControlStatusResponse = self.data[DATA_CLIMATE_STATUS_KEY] + # we will also consider the pending state as active if there is no status data available return ( - climate_status is not None - and climate_status.ac_start_stop_date_and_time is not None - and climate_pending_state.pending_timestamp > climate_status.ac_start_stop_date_and_time + climate_status is None + or climate_status.ac_start_stop_date_and_time is None + or climate_pending_state.pending_timestamp > climate_status.ac_start_stop_date_and_time )