Custom Modbus cover and light don't be loaded

I implemented my own cover and light entity for Modbus:

  • cover.py
  • light.py

If I place this two files directly under the directory

~/homeassistant/components/modbus/

it works fine with my configuration.

But, if I place this two files to

~/.homeassistant/custom_components/modbus/

I get the following error:

Okt 15 12:37:41 raspberrypi bash[20658]:   File "/home/pi/homeassistant/lib/python3.7/site-packages/homeassistant/config.py", line 757, in async_process_component_config
Okt 15 12:37:41 raspberrypi bash[20658]:     platform = p_integration.get_platform(domain)
Okt 15 12:37:41 raspberrypi bash[20658]:   File "/home/pi/homeassistant/lib/python3.7/site-packages/homeassistant/loader.py", line 232, in get_platform
Okt 15 12:37:41 raspberrypi bash[20658]:     f"{self.pkg_path}.{platform_name}"
Okt 15 12:37:41 raspberrypi bash[20658]:   File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
Okt 15 12:37:41 raspberrypi bash[20658]:     return _bootstrap._gcd_import(name[level:], package, level)
Okt 15 12:37:41 raspberrypi bash[20658]:   File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
Okt 15 12:37:41 raspberrypi bash[20658]:   File "<frozen importlib._bootstrap>", line 983, in _find_and_load
Okt 15 12:37:41 raspberrypi bash[20658]:   File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
Okt 15 12:37:41 raspberrypi bash[20658]: ModuleNotFoundError: No module named 'homeassistant.components.modbus.light'

Any idea what’s the problem?

I would like to split my own implementations from the original ones …