Skip to content

Instantly share code, notes, and snippets.

@roblandry
Created October 12, 2019 22:23
Show Gist options
  • Save roblandry/347a9c69f3d5d7f9d3b0d2de9ff0ed89 to your computer and use it in GitHub Desktop.
Save roblandry/347a9c69f3d5d7f9d3b0d2de9ff0ed89 to your computer and use it in GitHub Desktop.
Exception in thread Thread-16:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.7/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/config/custom_components/docker_monitor/__init__.py", line 456, in _runnable
self._notify(stats)
File "/config/custom_components/docker_monitor/__init__.py", line 351, in _notify
callback(message)
File "/config/custom_components/docker_monitor/switch.py", line 71, in update_callback
self.schedule_update_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 405, in schedule_update_ha_state
self.hass.add_job(self.async_update_ha_state(force_refresh))
AttributeError: 'NoneType' object has no attribute 'add_job'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment