You have to:
- Or reboot
- Or restart with the custom component but without the DHT definition, first, then only add the DHT to your HA.
See How to create a custom component from one removed from HA itself
You have to:
See How to create a custom component from one removed from HA itself