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

AssertionError: Failed to update data for lock. Nuki ID None volatized. #54

Closed
thomkaufmann opened this issue May 22, 2020 · 3 comments
Closed

Comments

@thomkaufmann
Copy link
Contributor

Hi @pschmitt, I'm seeing these errors in my HA logs, and the lock is no longer available in HA until I restart the HA server. The opener continues to work just fine.

This is with pynuki 1.3.7 and homeassistant-0.110.1.

Thanks!

may 22 00:33:24 hass hass[170685]: 2020-05-22 00:33:24 INFO (SyncWorker_2) [pynetgear] Get attached devices
may 22 00:33:35 hass hass[170685]: 2020-05-22 00:33:35 INFO (SyncWorker_3) [pynetgear] Get attached devices
may 22 00:33:46 hass hass[170685]: 2020-05-22 00:33:46 INFO (SyncWorker_3) [pynetgear] Get attached devices
may 22 00:33:48 hass hass[170685]: 2020-05-22 00:33:48 ERROR (MainThread) [homeassistant.helpers.entity] Update for lock.hodor fails
may 22 00:33:48 hass hass[170685]: Traceback (most recent call last):
may 22 00:33:48 hass hass[170685]: File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
may 22 00:33:48 hass hass[170685]: await self.async_device_update()
may 22 00:33:48 hass hass[170685]: File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/entity.py", line 472, in async_device_update
may 22 00:33:48 hass hass[170685]: await self.hass.async_add_executor_job(self.update)
may 22 00:33:48 hass hass[170685]: File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
may 22 00:33:48 hass hass[170685]: result = self.fn(*self.args, **self.kwargs)
may 22 00:33:48 hass hass[170685]: File "/home/homeassistant/.homeassistant/custom_components/nuki/lock.py", line 124, in update
may 22 00:33:48 hass hass[170685]: self._nuki_device.update(aggressive=level)
may 22 00:33:48 hass hass[170685]: File "/srv/homeassistant/lib/python3.8/site-packages/pynuki/device.py", line 89, in update
may 22 00:33:48 hass hass[170685]: assert data, (
may 22 00:33:48 hass hass[170685]: AssertionError: Failed to update data for lock. Nuki ID None volatized.

@thomkaufmann
Copy link
Contributor Author

It happens when pynetgear attempts to get attached devices.

@pschmitt
Copy link
Owner

I don't know how to prevent that from happening, not at the pynuki level. To me that seems like a pynetgear/home assistant issue 🤷‍♂️

@thomkaufmann
Copy link
Contributor Author

You're right. The HA device tracker documentation doesn't describe the "devices" and "exclude" options which allow you whitelist/blacklist devices. If anyone else encounters this, visit the Netgear integration documentation instead.

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