Closed woutercoppens closed 7 years ago
Instead of
from homeassistant.components.openmotics import (OM_LOGIN, OM_LIGHTS, OM_OUTPUT_STATUS)
use
from custom_components.openmotics import (OM_LOGIN, OM_LIGHTS, OM_OUTPUT_STATUS)
Other people are having the same problem, so please add this to the documentation.
Make sure you are running the latest version of Home Assistant before reporting an issue.
You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:
Home Assistant release (
hass --version
): 0.46.1Python release (
python3 --version
): 3.5.2 Hassio release: 0.8Component/platform: custom component
Description of problem: I wrote a custom component to control the openmotics hub: https://www.openmotics.com/ The source code can be found at: https://github.com/woutercoppens/home-assistant
When I copy my modules in the modules directory of Home Assistant, everything works fine. However when I put my modules in the custom_components directory, I get all kinds of errors (see traceback).
Each time Home Assistant is upgraded, I have to copy the modules back into the components directory.
Right now it is not possible to create custom components that consists of multiple modules. Expected:
Problem-relevant
configuration.yaml
entries and steps to reproduce:Traceback (if applicable):
Additional info: I even tried to replace 'from homeassistant.components.openmotics import ...' with 'from 'homeassistant.custom_components.openmotics import ...', but that doesn't work neither.