Entity seems to be an invalid type. I think you need to use “object” instead if you want to work with entities. Use “attribute” if you only need a single field from the entity.
The list of valid types can be found here:
https://docs.mendix.com/apidocs-mxsdk/apidocs/pluggable-widgets-property-types/