Traceback (most recent call last):


 "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 20, in _handle_async_response

await func(hass, connection, msg)


 "/usr/src/homeassistant/homeassistant/components/device_automation/__init__.py", line 200, in websocket_device_automation_list_conditions

conditions = await _async_get_device_automations(hass, "condition", device_id)


 "/usr/src/homeassistant/homeassistant/components/device_automation/__init__.py", line 120, in _async_get_device_automations

for entry_id in device.config_entries:
AttributeError: 'NoneType' object has no attribute 'config_entries'

Original Traceback (most recent call last):


 "/home/sdy/.local/lib/python3.6/site-packages/torch/utils/data/_utils/worker.py", line 178, in _worker_loop

data = fetcher.fetch(index)


 "/home/sdy/.local/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch

data = [self.dataset[idx] for idx in possibly_batched_index]


 "/home/sdy/.local/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp>

data = [self.dataset[idx] for idx in possibly_batched_index]


 "/home/sdy/CenterNet/src/lib/datasets/sample/ctdet.py", line 39, in __getitem__

height, width = img.shape[0], img.shape[1]
AttributeError: 'NoneType' object has no attribute 'shape'
