Currently, when a function decorated with @mqtt_trigger is triggered, there is no way to access the retain flag of the incoming MQTT message.
How about adding a new keyword argument, retain, to the list of available variables passed to the decorated function. This variable would be a boolean (True or False) indicating the retained status of the message.