2020-07-02 20:36:05 ERROR (MainThread) [homeassistant.core] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/homeassistant/.homeassistant/custom_components/mitemp_bt/
sensor.py", line 775, in update_ble
discover_ble_devices(config, aeskeys, whitelist)
File "/home/homeassistant/.homeassistant/custom_components/mitemp_bt/
sensor.py", line 683, in discover_ble_devices
sensors[t_i], mac, config, temp_m_data[mac]
File "/home/homeassistant/.homeassistant/custom_components/mitemp_bt/
sensor.py", line 499, in calc_update_state
entity_to_update.schedule_update_ha_state()
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 416, in schedule_update_ha_state
assert self.hass is not None
AssertionError