If the component doesn’t load this might be due to Home Assistant not installing the requirements automatically through the manifests file. You can install them manaually by running pip install beautifulsoup4==4.7.1 imapclient==2.1.0 mail-parser==3.9.3
If you use 2 factor authentication for Google you’ll need to create an app password. See more details here
OK, I saved the email folder in my custom_components folder and created the sensor but am getting the error below. Any idea what the issue may be? I am running Hassio .91.4
Fri Apr 26 2019 13:53:09 GMT-0500 (Central Daylight Time)
Error while setting up platform email
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 126, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 416, in wait_for
return fut.result()
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/email/sensor.py", line 43, in setup_platform
from imapclient import IMAPClient
ModuleNotFoundError: No module named 'imapclient'
Hassio doesn’t allow to manually install the needed (or any other) python libraries (simply, there’s no pip or pip3 since it is running in a container). So, unfortunately, the integration is not working in Hassio. Or, maybe, there is any workaround?