Hi all,
Just wondering how to import when creating a custom component for Hassio 62.0?
I have my component working in custom_components and would like to import from ‘Downloader’ so I have tried the following:
def setup_platform(hass, config, add_devices, discovery_info=None):
"""Setup the platform."""
from downloader import account
#AND
from homeassistant.custom_components.downloader import account
Any help would be awesome,
Cheers Leigh.
Am I missing folder structure or something? Or do I need to import via the command line when developing a custom component?
So I’ve worked out that the REQUIREMENTS = [ ] line is what attempts the install of the pacakges. Now I just need to work out where in the folder structure to put my dependency to stop it throwing this error:
2018-02-02 18:04:37 ERROR (SyncWorker_8) [homeassistant.util.package] Unable to install package DownloaderPY==0.1.4: Could not find a version that satisfies the requirement DownloaderPY==0.1.4 (from versions: )