nonsleepr / ha-eufy-security

Custom integration of Home Assistant with EufySecurity
168 stars 44 forks source link

Error Eufy Camera on camera.py:46 #26

Closed alesoft73 closed 3 years ago

alesoft73 commented 3 years ago

Hi, i have this error on homeassitant version:2020.12.0

Logger: homeassistant.components.camera Source: custom_components/eufy_security/camera.py:46 Integration: Telecamera (documentation, issues) First occurred: 00:38:42 (1 occurrences) Last logged: 00:38:42 Error while setting up eufy_security platform for camera

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 199, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/eufy_security/camera.py", line 31, in async_setup_entry [EufySecurityCam(hass, camera) for camera in api.cameras.values()], True File "/config/custom_components/eufy_security/camera.py", line 31, in [EufySecurityCam(hass, camera) for camera in api.cameras.values()], True File "/config/custom_components/eufy_security/camera.py", line 46, in init self._ffmpeg_image_frame = ImageFrame(self._ffmpeg.binary, loop=hass.loop) TypeError: init() got an unexpected keyword argument 'loop'

Many thanks for all!

alesoft73 commented 3 years ago

I think the problem is 2fa login active into account... I have create a new account login with integration, but don't import any cam...

xekil commented 3 years ago

Hello, I have the same problem and I am not using authentication 2fa :(

Home Assistant OS 5.8 Home Assistant 2020.12.0

vdiogo commented 3 years ago

Same problem here since yesterday. HASSIO 2020.12.6 Docker: 19.03.12

rpitera commented 3 years ago

Also being reported on the community forums

https://community.home-assistant.io/t/eufy-camera-integration/121758/372

martoq commented 3 years ago

One more for having the problem:

Operating System Home Assistant OS 5.8

Supervisor Version 2020.12.6

Eufy 0.3.0

jwmcintosh commented 3 years ago

I had the same issue here. See the link at the bottom for the (probable) fix.

Operating System Home Assistant OS 5.8 Version 2020.12.7

Log Details (ERROR) Logger: homeassistant.components.camera Source: custom_components/eufy_security/camera.py:46 Integration: Camera (documentation, issues) First occurred: 5:38:57 PM (4 occurrences) Last logged: 7:24:19 PM

Error while setting up eufy_security platform for camera Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 199, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/eufy_security/camera.py", line 31, in async_setup_entry [EufySecurityCam(hass, camera) for camera in api.cameras.values()], True File "/config/custom_components/eufy_security/camera.py", line 31, in [EufySecurityCam(hass, camera) for camera in api.cameras.values()], True File "/config/custom_components/eufy_security/camera.py", line 46, in init self._ffmpeg_image_frame = ImageFrame(self._ffmpeg.binary, loop=hass.loop) TypeError: init() got an unexpected keyword argument 'loop'


The fix mentioned by @mikeskydev did work for me. Restart required, reloading integration will not due. https://community.home-assistant.io/t/eufy-camera-integration/121758/383

BillyFKidney commented 3 years ago

Worked for me as well!

I had the same issue here. See the link at the bottom for the (probable) fix.

Operating System Home Assistant OS 5.8 Version 2020.12.7

Log Details (ERROR) Logger: homeassistant.components.camera Source: custom_components/eufy_security/camera.py:46 Integration: Camera (documentation, issues) First occurred: 5:38:57 PM (4 occurrences) Last logged: 7:24:19 PM

Error while setting up eufy_security platform for camera Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 199, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/eufy_security/camera.py", line 31, in async_setup_entry [EufySecurityCam(hass, camera) for camera in api.cameras.values()], True File "/config/custom_components/eufy_security/camera.py", line 31, in [EufySecurityCam(hass, camera) for camera in api.cameras.values()], True File "/config/custom_components/eufy_security/camera.py", line 46, in init self._ffmpeg_image_frame = ImageFrame(self._ffmpeg.binary, loop=hass.loop) TypeError: init() got an unexpected keyword argument 'loop'

The fix mentioned by @mikeskydev did work for me. Restart required, reloading integration will not due. https://community.home-assistant.io/t/eufy-camera-integration/121758/383