ha-wyzesense icon indicating copy to clipboard operation
ha-wyzesense copied to clipboard

Ignoring non-OSError in worker thread

Open PierreScerri opened this issue 4 years ago • 0 comments

Hi

I'm getting this error in HA log:

Log Details (ERROR)
Logger: custom_components.wyzesense.wyzesense_custom
Source: helpers/entity.py:426
Integration: wyzesense (documentation)
First occurred: 2:32:28 PM (2 occurrences)
Last logged: 2:32:28 PM

Ignoring non-OSError in worker thread. Please share the error logs with the developers.
Traceback (most recent call last):
  File "/config/custom_components/wyzesense/wyzesense_custom.py", line 371, in _Worker
    self._HandlePacket(pkt)
  File "/config/custom_components/wyzesense/wyzesense_custom.py", line 344, in _HandlePacket
    handler(pkt)
  File "/config/custom_components/wyzesense/wyzesense_custom.py", line 269, in _OnSensorAlarm
    self.__on_event(self, e)
  File "/config/custom_components/wyzesense/binary_sensor.py", line 110, in on_event
    entities[event.MAC].schedule_update_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 426, in schedule_update_ha_state
    self.hass.add_job(self.async_update_ha_state(force_refresh))
AttributeError: 'NoneType' object has no attribute 'add_job'

PierreScerri avatar May 29 '20 12:05 PierreScerri