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

timePlanInfos error while setting the ezviz_cloud platform #53

Closed
powro opened this issue Apr 4, 2021 · 2 comments
Closed

timePlanInfos error while setting the ezviz_cloud platform #53

powro opened this issue Apr 4, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@powro
Copy link

powro commented Apr 4, 2021

I started to receive the below error after upgrade to the latest version (earlier using couple of months old one). Interesting is that it pops up even if i do not configure any camera (only the main user account). I have one camera with notification schedule configured (if this is related), however disabling the schedule does not help here.

Unexpected error fetching ezviz_cloud data: 'NoneType' object is not subscriptable
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 151, in async_refresh
    self.data = await self._async_update_data()
  File "/config/custom_components/ezviz_cloud/coordinator.py", line 36, in _async_update_data
    return await self.hass.async_add_executor_job(self._update_data)
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/ezviz_cloud/coordinator.py", line 28, in _update_data
    cameras = self.ezviz_client.load_cameras()
  File "/usr/local/lib/python3.8/site-packages/pyezviz/client.py", line 366, in load_cameras
    cameras.append(camera.status())
  File "/usr/local/lib/python3.8/site-packages/pyezviz/camera.py", line 140, in status
    self._device.get("timePlanInfos")[1].get("enable")
TypeError: 'NoneType' object is not subscriptable

Any ideas what may be the issue?

@RenierM26 RenierM26 added the bug Something isn't working label Apr 5, 2021
@RenierM26
Copy link
Owner

Hi @powro,

Found the problem. It should work with the latest release v.0.0.6.0.

Would you trying the latest release?

@powro
Copy link
Author

powro commented Apr 5, 2021

Works perfect! Thank you @RenierM26

@powro powro closed this as completed Apr 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants