Change `entity_category`

My hass gave some entities (e.g. power of an aqara smart plug) an entity_category I don’t want (diagnostic instead of None ). How can I change this?

I tried customization (Customizing entities - Home Assistant) but entity_category isn’t one of the customization variables it seems. Changes do show up in Developer Tools as attributes, but it doesn’t have the effect of moving the sensor from “Diagnostic” to “Sensors” on the device overview (or the sensor showing up in my default overview (maintained by hass)).

Editing the .storage/core.entity_registry through the visual studio add on doesn’t seem to persist, gets reset to diagnostic on core reload. And I understood in general you shouldn’t touch this.

So, how can I change/customize the entity_category used by core to categorize entities?

You can’t change it. It’s set by the integration.