diff --git a/custom_components/toyota/climate.py b/custom_components/toyota/climate.py index 3fdf8af5..758fe6a1 100644 --- a/custom_components/toyota/climate.py +++ b/custom_components/toyota/climate.py @@ -63,14 +63,19 @@ async def async_setup_entry( def _vehicle_has_climate_capability(vehicle: Vehicle) -> bool: """Check if vehicle supports climate control.""" try: - return getattr( - getattr(vehicle._vehicle_info, "features", False), # noqa : SLF001 - "climate_start_engine", - False, - ) + caps = getattr(vehicle._vehicle_info, "extended_capabilities", False) # noqa : SLF001 + for cap in [ + "climate_capable", + "econnect_climate_capable", + "remote_engine_start_stop", + ]: + if getattr(caps, cap, False): + return True except Exception: # pylint: disable=W0718 # noqa : BLE001 return False + return False + class ToyotaClimate(ToyotaBaseEntity, ClimateEntity): """Representation of a Toyota climate control."""