Hi!
I got my nuki today and wanted to integrate it into homeassistant right away.
First I fell for the oldest error ever and mistook the captal I in the API token for an small l and couln’t imaginge why that doesn’t work.
But even now, that the token is correct, it doesn’t work. I get the following error
Mär 17 20:12:34 cs hass[20883]: Traceback (most recent call last):
Mär 17 20:12:34 cs hass[20883]: File "/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/entity_component.py", line 153, in _async_setup_platform
Mär 17 20:12:34 cs hass[20883]: entity_platform.schedule_add_entities, discovery_info
Mär 17 20:12:34 cs hass[20883]: File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
Mär 17 20:12:34 cs hass[20883]: yield self # This tells Task to wait for completion.
Mär 17 20:12:34 cs hass[20883]: File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
Mär 17 20:12:34 cs hass[20883]: future.result()
Mär 17 20:12:34 cs hass[20883]: File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
Mär 17 20:12:34 cs hass[20883]: raise self._exception
Mär 17 20:12:34 cs hass[20883]: File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
Mär 17 20:12:34 cs hass[20883]: result = self.fn(*self.args, **self.kwargs)
Mär 17 20:12:34 cs hass[20883]: File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/lock/nuki.py", line 39, in setup_platform
Mär 17 20:12:34 cs hass[20883]: add_devices([NukiLock(lock) for lock in bridge.locks])
Mär 17 20:12:34 cs hass[20883]: File "/home/cs/.homeassistant/deps/pynuki/pynuki.py", line 176, in locks
Mär 17 20:12:34 cs hass[20883]: state_data = {k: v for k, v in l['lastKnownState'].items() \
Mär 17 20:12:34 cs hass[20883]: KeyError: 'lastKnownState'
Any idea?