- 积分
- 216
- 金钱
- 178
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
中级会员
- 积分
- 216
- 金钱
- 178
- HASS币
- 0
|
发表于 2018-7-10 11:04:59
|
显示全部楼层
强大,出现这个报错,是怎么回事呢?
Error during setup of component hello_miai
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/homeassistant/setup.py", line 146, in _async_setup_component
component.setup, hass, processed_config) # type: ignore
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/hello_miai.py", line 339, in setup
client = xiaomi_tts(miid, password,login_info_dir=hass.config.path('.xiaoai'),can_input_capt=False)
File "/config/custom_components/hello_miai.py", line 50, in __init__
self._LoginByPassord()
File "/config/custom_components/hello_miai.py", line 77, in _LoginByPassord
if not self._login_miai():
File "/config/custom_components/hello_miai.py", line 186, in _login_miai
serviceToken = "nonce={}&{}".format(self._serviceLoginAuth2_json['nonce'],self._serviceLoginAuth2_json['ssecurity'])
KeyError: 'nonce' |
|