|
发表于 2019-4-12 17:12:44
|
显示全部楼层
出错信息如下:
2019-04-12 09:07:40 INFO (MainThread) [custom_components.aligenie] Handle Request: {'header': {'messageId': '7fcf9683-a0bf-4f96-9610-111ba707ed19', 'name': 'DiscoveryDevices', '
namespace': 'AliGenie.Iot.Device.Discovery', 'payLoadVersion': 1}, 'payload': {'accessToken': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiI5NjczOTY5NDVmMmE0NDBjOTZhNzM0MWZiM
TgxNDdkYSIsImlhdCI6MTU1NTA2MDA1NiwiZXhwIjoxNTg2NTk2MDU2fQ.Km2BDlypXo1T3Hmy2RdW5qWctFuaEfxMO80xohMYbUU'}}
2019-04-12 09:07:40 ERROR (MainThread) [custom_components.aligenie] Traceback (most recent call last):
File "/config/custom_components/aligenie.py", line 106, in handleRequest
result = discoveryDevice()
File "/config/custom_components/aligenie.py", line 169, in discoveryDevice
deviceName = guessDeviceName(entity_id, attributes, places, aliases)
File "/config/custom_components/aligenie.py", line 373, in guessDeviceName
if name == aliases['key'] or name in aliases['value']:
TypeError: list indices must be integers or slices, not str
我的customize.yaml:
switch.tv_slot:
friendly_name: TV Outlet
hagenie_deviceName: 电视
hagenie_deviceType: switch
hagenie_zone: 客厅
# hagenie_hidden: true
如果把customize.yaml中的hagenie去掉就没有出错,
switch.tv_slot:
friendly_name: TV Outlet
hagenie_hidden: true
请教是customize.yaml哪里配置出错吗 |
|