- 积分
- 747
- 金钱
- 614
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
高级会员
- 积分
- 747
- 金钱
- 614
- HASS币
- 0
|
发表于 2018-4-4 11:23:03
|
显示全部楼层
遇到这样的错误,请问是哪里出错了?谢谢!
-----------------------------------------------------
Home Assistant
0.66.1
Path to configuration.yaml: /home/homeassistant/.homeassistant
Developed by a bunch of awesome people.
Published under the Apache 2.0 license
Source: server — frontend-ui
Built using Python 3, Polymer 2.6.0, Icons by Google and MaterialDesignIcons.com.
Frontend JavaScript version: latest
Error while setting up platform CaiyunweatherSE
11:20 AM custom_components/sensor/CaiyunweatherSE.py (ERROR)
Press the button to load the full Home Assistant log.
Log Details (ERROR)
Wed Apr 04 2018 11:20:25 GMT+0800 (中国标准时间)
Error while setting up platform CaiyunweatherSE
Traceback (most recent call last):
File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 82, in async_setup
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File "/usr/local/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
return fut.result()
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, 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' |
|