|
发表于 2018-2-20 22:54:19
|
显示全部楼层
用不了啊,怎么整都不行
2018-02-20 22:46:29 ERROR (Thread-6) [custom_components.sensor.CaiyunweatherSE] Json Status Error1!
2018-02-20 22:46:29 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform CaiyunweatherSE
Traceback (most recent call last):
File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 84, in async_setup
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File "/usr/lib/python3.5/asyncio/tasks.py", line 392, in wait_for
return fut.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/homeassistant/.homeassistant/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 "/home/homeassistant/.homeassistant/custom_components/sensor/CaiyunweatherSE.py", line 435, in __init__
elatitude = self.tracker_state.attributes.get('latitude')
AttributeError: 'NoneType' object has no attribute 'attributes'
服务里面也确定压根没有sensor.download_caiyun_zone_home_forecast |
|