/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='sensorEntity'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task ApiSensorByIdPutAsync(this IHomeAutomationAPI operations, int id, SensorEntity sensorEntity = default(SensorEntity), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.ApiSensorByIdPutWithHttpMessagesAsync(id, sensorEntity, null, cancellationToken).ConfigureAwait(false)).Dispose(); }