Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loop error in init #58

Open
Spiffo opened this issue Jul 2, 2021 · 2 comments
Open

Loop error in init #58

Spiffo opened this issue Jul 2, 2021 · 2 comments

Comments

@Spiffo
Copy link

Spiffo commented Jul 2, 2021

Just installed the package through HACS (modifying the manifest to contain the version, like discussed elsewhere on this repo), and got following error:

2021-07-02 10:38:43 ERROR (MainThread) [homeassistant.components.camera] Error while setting up eufy_security platform for camera
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 250, 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'

Anyone got any idea?

@Spiffo
Copy link
Author

Spiffo commented Jul 2, 2021

And a while later:

Traceback (most recent call last):
File "/config/custom_components/eufy_security/init.py", line 87, in refresh
await api.async_update_device_info()
File "/usr/local/lib/python3.8/site-packages/eufy_security/api.py", line 57, in async_update_device_info
devices_resp = await self.request("post", "app/get_devs_list")
File "/usr/local/lib/python3.8/site-packages/eufy_security/api.py", line 114, in request
raise RequestError(
eufy_security.errors.RequestError: There was an unknown error while requesting app/get_devs_list: 503, message='Service Temporarily Unavailable', url=URL('https://security-app-eu.eufylife.com/v1/app/get_devs_list')

@profucius
Copy link

profucius commented Aug 12, 2021

Just figured this out. I deleted the files in the custom_components/eufy_security folder, and transferred the files downloaded straight from the github repo. Edited the manifest.json for version. Uploaded and then reboot the Supervisor, not only the regular reboot. Now I can access camera fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants