Zigbee sensor device class dissappearing

I have several Aqara sensors added through ZHA where the device class for some reason seem to be disappearing. Status and icon hence change to binary sensor defaults. If I remove and add the sensor again it’s fine.

Example (line two should contain “device class: motion”):
image

Any ideas about what’s happening here? Couldn’t find anything similar.

Is the device-class set by default or do you customize it?

It’s set by default when adding sensors through ZHA. (I could possible customize entry it to add device class, but would ideally to prefer to understand why it happens in order to stop it.)