fwestenberg / reolink_dev

Home Assistant Reolink addon
MIT License
550 stars 102 forks source link

cannot import name 'Api' from 'reolink.camera_api' #401

Closed Kire88Visser closed 2 years ago

Kire88Visser commented 2 years ago

Describe the bug Since the upgrade to Home Assistant version 2021.12 the integration does not load anymore and the following error shows up in the logs:

image

Setup failed for reolink_dev: Unable to import component: cannot import name 'Api' from 'reolink.camera_api' (/usr/local/lib/python3.9/site-packages/reolink/camera_api.py)

I have tried to delete the integration I had, but this is not working. I have removed the Reolink HACS integration and reinstalled it, but nothing has changed.

Environment: Please provide useful information about your environment, like:

Kire88Visser commented 2 years ago

Today I managed to delete the integration that wasn't able to load. After reinstalling the camera integration the camera is now back up and running in HA.