2017-09-03 16:41:09 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform gaodetraffic
Traceback (most recent call last):
File "/Users/youran/.pyenv/versions/3.5.2/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py", line 164, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
File "/Users/youran/.pyenv/versions/3.5.2/lib/python3.5/asyncio/tasks.py", line 392, in wait_for
return fut.result()
File "/Users/youran/.pyenv/versions/3.5.2/lib/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
File "/Users/youran/.pyenv/versions/3.5.2/lib/python3.5/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/Users/youran/.homeassistant/custom_components/sensor/gaodetraffic.py", line 58, in setup_platform
gaodetraffic = gaodetrafficSensor(hass,sensor_name,gaodetrafficData)
File "/Users/youran/.homeassistant/custom_components/sensor/gaodetraffic.py", line 78, in __init__
self.update()
File "/Users/youran/.homeassistant/custom_components/sensor/gaodetraffic.py", line 109, in update
self._data.update()
AttributeError: 'NoneType' object has no attribute 'update'