Custom component in subfolder of custom_components folder

Is it possible to put a custom component in a subfolder of the custom_components folder ? This allows for better organization of my code (and direct cloning from a github repo…)

Thanks !
Sander.

In some cases you actually have to in order for it to work, depending on the type.

My custom components folder has subdirectories for sensor, binary_sensor and media_player for when I was beta testing these types for other devs.

Yeah but I understand those folders would resemble the domain/platform structure found in the standard components. I would just like to have a custom component in a subfolder… Or could there be another way?

I agree, this would be better.

custom_components//normal subdir structure