Open poughkeepsee opened 11 months ago
Dears,
that one is still open. When do you expect to issue an updated version? the integration is still pumping in a load of error messages in my installation like:
`Logger: homeassistant Source: custom_components/nuki_ng/sensor.py:96 Integration: Nuki Lock (documentation, issues) First occurred: 12. Februar 2024 um 16:43:40 (714 occurrences) Last logged: 09:01:09
Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 256, in _handle_refresh_interval await self._async_refresh(log_failures=True, scheduled=True) File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 412, in _async_refresh self.async_update_listeners() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 183, in async_update_listeners update_callback() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 492, in _handle_coordinator_update self.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 989, in async_write_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1110, in _async_write_ha_state state, attr, capabilities, shadowed_attr = self.async_calculate_state() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1047, in async_calculate_state state = self._stringify_state(available) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 995, in _stringify_state if (state := self.state) is None: ^^^^^^^^^^ File "/config/custom_components/nuki_ng/sensor.py", line 100, in state return self.native_value ^^^^^^^^^^^^^^^^^ File "/config/custom_components/nuki_ng/sensor.py", line 96, in native_value return self.data.get("bridge_info", {}).get("rssi") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'get'`
Any help highly appreciated!
I've had this error in my log for months now, and I can't understand the reason or how to fix it. As far as I can tell, the lock is reporting a None state that can't identified/handled by the component. I have a v1 lock + bridge.
Appreciate any help possible. Log entry below.