In my docker version of homeassistant I found that the homeassistant directory wasn’t added to the python imports directory list so I added it manually at the start of my script using sys.path
My current pah is:
[’/home/pi’, ‘/usr/bin’, ‘/usr/lib/python35.zip’, ‘/usr/lib/python3.5’, ‘/usr/lib/python3.5/plat-arm-linux-gnueabihf’, ‘/usr/lib/python3.5/lib-dynload’, ‘/usr/local/lib/python3.5/dist-packages’, ‘/usr/lib/python3/dist-packages’]
My virtual environment is located here:
/srv/homeassistant/homeassistant_venv
I tried to add this directory and also some subdirectories to the path but nothing worked so far.
Which directory did you add?
When i also install homeassistant under the user pi the error is gone.
But i don’t want to make every upgrade twice, so i don’t want this situation.