I’m not sure when this broke, but I believe it was pretty recent.
The following only appears when I include my camera config
2017-08-12 20:39:36 ERROR (MainThread) [homeassistant.components.camera] Error while setting up platform foscam
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py", line 164, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
File "/usr/lib/python3.4/asyncio/tasks.py", line 372, in wait_for
return fut.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/camera/foscam.py", line 39, in setup_platform
add_devices([FoscamCam(config)])
File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/camera/foscam.py", line 56, in __init__
from foscam import FoscamCamera
File "/home/pi/.homeassistant/deps/lib/python3.4/site-packages/foscam/__init__.py", line 1, in <module>
from foscam import FoscamCamera
ImportError: cannot import name 'FoscamCamera'
2017-09-12 06:19:39 ERROR (MainThread) [homeassistant.components.camera] Error while setting up platform foscam
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 164, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
File "/usr/lib/python3.4/asyncio/tasks.py", line 372, in wait_for
return fut.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/camera/foscam.py", line 39, in setup_platform
add_devices([FoscamCam(config)])
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/camera/foscam.py", line 56, in __init__
from foscam import FoscamCamera
File "/srv/homeassistant/lib/python3.4/site-packages/foscam/__init__.py", line 1, in <module>
from foscam import FoscamCamera
ImportError: cannot import name 'FoscamCamera'
.
What is the fix?
I really hate doing updates because every time I do an update something breaks and I spend hours researching to try to figure out the solution.
I originally updated to 0.50.2 and my zwave stopped working. Then I thought if I updated to 0.51.2 it might fix my zwave component issue but all it did was break my foscam component too.