MQTT sensor presented as Diagnostic

I have two Smartknobs integrated via Z2M and Conbee2 as a coordinator. They had been working fine for a long time, but recently, most likely after an update, they stopped working properly. As I found out, the action entity, which is the most important for these devices, has disappeared from the system.

After some research and following someone’s advice, I enabled the “Home Assistant legacy action sensors” option in my Z2M configuration. This partially solved the issue. Now, I can see the required sensor, but it is classified as “diagnostic.”

How can I change its class, type, or any other setting to make it behave like a regular sensor, as it did before?