Entity regularly changes from switch to light

I have a Asakuki diffuser integrated into HA with Tasmota and MQTT.
The diffuser has two entities:

  • A light (LED)
  • A fan (the diffuser)

The ‘fan’ entity regularly changes from a light to a switch causing issues with my automations.
What is causing this and how can I fix it?