[solved] Sonoff mini and mqtt discovery shown as a sensor only

Hi,
I flashed my Sonoff Mini device with tasmota.bin.
I have mqtt discovery set to true in configuration.yaml.
I send SetOption19 1 to my device (into its web console).
I restarted Home Assistant.
Then my device is discovered but only as a sensor: sensor.my_sonoff_status. No switch entity is shown.
Any suggestion ?

Did you apply the correct template ?

Thank you very much !

I missed this part of the configuration (I was reading only https://tasmota.github.io/docs/#/integrations/Home-Assistant?id=disabling).