How to delete old Tuya entities - check box greyed out; error: entities does not have a unique ID

Hi. I removed some zigbee devices from my Tuya hub and connected them to the Hue hub instead. I’ve reloaded both hubs in HA. The “devices” all show up correctly with no old left-over entries from Tuya. But the “entities” for those old Tuya devices still show up.

In the Integration - Entities page, the checkbox is greyed out for those devices and if I click the configuration button, it tell me “the entity xxx does not have a unique ID and can’t be managed in UI”.

This implies I need to remove them from yaml somehow. But I never added them via custom yaml. They were added with the Tuya integration.

So how do I go about removing these entries now?

FYI, these entities are classified under the integration “light” instead of Tuya, for some reason.