HA crashes after removing entity

There’s an Ikea power outlet that I use but I noticed it’s unresponsive today.

I tried resetting it and adding it again but no luck. The entity is not in conbee 2 (deconz) but it shows in HA under devices.

I tried remove this entity from core.entity_registry and from core.device_registry, where I’ve successfully removed orphaned devices before, but, when I remove its entry HA does not start up anymore.

It seems to me that as long as the device is in those files I can not add it with deconz (or deconz is somehow corrupt). Other devices are available and working though.

I tried a few more times deleting the device from the core.device_regsitry and succeeded. There was supposed to be a , instead of ; st the end of the file before deleted devices.