|
发表于 2018-1-18 21:31:20
|
显示全部楼层
好像还是有错误,是我一个人的问题么:
2018-01-18 21:23:18 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform CaiyunweatherSE
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py", line 171, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
File "/usr/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
return fut.result()
File "/usr/lib/python3.6/asyncio/futures.py", line 245, in result
raise self._exception
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/sensor/CaiyunweatherSE.py", line 357, in setup_platform
dev0.append(CaiyunSensor(CONF_MINUTELY, 'tracker', entity_id[i]+'_description', None, 'mdi:heart-half-full', api_key, entity_id[i], hass, download_file, download_path, alert))
File "/config/custom_components/sensor/CaiyunweatherSE.py", line 435, in __init__
elatitude = self.tracker_state.attributes.get('latitude')
AttributeError: 'NoneType' object has no attribute 'attributes'
|
|