MQTT retain flag

Hi,

Just found home assistant a few days ago and have already implemented more than I acheived in 3 weeks with openhab. I hate Java! Home assistant is great and python is like a dream compared to Java. Dev’s have done some really great work here!

Quick question though, I have an MQTT switch set up. How can I set the MQTT retain flag for all messages it publishes?

Thanks

Tim

Docs were not up to date, now are: home-assistant.io/components/switch.mqtt/