Traceback (most recent call last):


 "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform

await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)


 "/usr/lib/python3.7/asyncio/tasks.py", line 416, in wait_for

return fut.result()


 "/home/homeassistant/.homeassistant/custom_components/sonoff/switch.py", line 20, in async_setup_platform

if 'FAN' in hass.data[SONOFF_DOMAIN].device_type_by_uiid(device):
TypeError: argument of type 'NoneType' is not iterable


Traceback (most recent call last):


 "<string>", line 1, in <module>


 "/tmp/pip-install-uztvsd6k/ruamel.yaml/setup.py", line 858, in <module>

main()


 "/tmp/pip-install-uztvsd6k/ruamel.yaml/setup.py", line 847, in main

setup(**kw)


 "/home/florian/anaconda3/envs/dlc-ubuntu-GPU/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup

return distutils.core.setup(**attrs)


 "/home/florian/anaconda3/envs/dlc-ubuntu-GPU/lib/python3.7/distutils/core.py", line 108, in setup

_setup_distribution = dist = klass(attrs)


 "/home/florian/anaconda3/envs/dlc-ubuntu-GPU/lib/python3.7/site-packages/setuptools/dist.py", line 444, in __init__

k: v for k, v in attrs.items()


 "/home/florian/anaconda3/envs/dlc-ubuntu-GPU/lib/python3.7/distutils/dist.py", line 267, in __init__

getattr(self.metadata, "set_" + key)(val)


 "/home/florian/anaconda3/envs/dlc-ubuntu-GPU/lib/python3.7/distutils/dist.py", line 1203, in set_keywords

self.keywords = _ensure_list(value, 'keywords')


 "/home/florian/anaconda3/envs/dlc-ubuntu-GPU/lib/python3.7/distutils/dist.py", line 40, in _ensure_list

value = list(value)

TypeError: 'NoneType' object is not iterable
