I have tried moving/renaming as follows:
automower.py -> custom_components/automower/automower.py device_tracker/automower.py -> custom_components/automower/device_tracker.py vacuum/automower.py -> custom_components/automower/vacuum.py
I have also tried:
automower.py -> custom_components/automower/__init__.py
But I only get these error messages:
Error loading custom_components.automower.vacuum. Make sure all dependencies are installed
Traceback (most recent call last): File “/usr/local/lib/python3.7/site-packages/homeassistant/loader.py”, line 147, in _load_file module = importlib.import_module(path) File “/usr/local/lib/python3.7/importlib/init.py”, line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File “<frozen importlib._bootstrap>”, line 1006, in _gcd_import File “<frozen importlib._bootstrap>”, line 983, in _find_and_load File “<frozen importlib._bootstrap>”, line 967, in _find_and_load_unlocked File “<frozen importlib._bootstrap>”, line 677, in _load_unlocked File “<frozen importlib._bootstrap_external>”, line 728, in exec_module File “<frozen importlib._bootstrap>”, line 219, in _call_with_frames_removed File “/config/custom_components/automower/vacuum.py”, line 8, in <module> from homeassistant.components.automower import DOMAIN as AUTOMOWER_DOMAIN ModuleNotFoundError: No module named ‘homeassistant.components.automower’
Error loading custom_components.automower.device_tracker. Make sure all dependencies are installed
Traceback (most recent call last): File “/usr/local/lib/python3.7/site-packages/homeassistant/loader.py”, line 147, in _load_file module = importlib.import_module(path) File “/usr/local/lib/python3.7/importlib/init.py”, line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File “<frozen importlib._bootstrap>”, line 1006, in _gcd_import File “<frozen importlib._bootstrap>”, line 983, in _find_and_load File “<frozen importlib._bootstrap>”, line 967, in _find_and_load_unlocked File “<frozen importlib._bootstrap>”, line 677, in _load_unlocked File “<frozen importlib._bootstrap_external>”, line 728, in exec_module File “<frozen importlib._bootstrap>”, line 219, in _call_with_frames_removed File “/config/custom_components/automower/device_tracker.py”, line 8, in <module> from homeassistant.components.automower import DOMAIN as AUTOMOWER_DOMAIN ModuleNotFoundError: No module named ‘homeassistant.components.automower’