|
发表于 2019-5-28 17:59:00
|
显示全部楼层
今天貌似又不能用了,HA的log如下
May 28 17:47:57 dreamha hass[23316]: 2019-05-28 17:47:57 ERROR (MainThread) [homeassistant.setup] Error during setup of component hello_miai
May 28 17:47:57 dreamha hass[23316]: Traceback (most recent call last):
May 28 17:47:57 dreamha hass[23316]: File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/setup.py", line 156, in _async_setup_component
May 28 17:47:57 dreamha hass[23316]: component.setup, hass, processed_config) # type: ignore
May 28 17:47:57 dreamha hass[23316]: File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
May 28 17:47:57 dreamha hass[23316]: result = self.fn(*self.args, **self.kwargs)
May 28 17:47:57 dreamha hass[23316]: File "/home/homeassistant/.homeassistant/custom_components/hello_miai.py", line 333, in setup
May 28 17:47:57 dreamha hass[23316]: client = xiaomi_tts(hass,config,miid, password)
May 28 17:47:57 dreamha hass[23316]: File "/home/homeassistant/.homeassistant/custom_components/hello_miai.py", line 39, in __init__
May 28 17:47:57 dreamha hass[23316]: self._LoginByPassord()
May 28 17:47:57 dreamha hass[23316]: File "/home/homeassistant/.homeassistant/custom_components/hello_miai.py", line 103, in _LoginByPassord
May 28 17:47:57 dreamha hass[23316]: if not self._login_miai():
May 28 17:47:57 dreamha hass[23316]: File "/home/homeassistant/.homeassistant/custom_components/hello_miai.py", line 179, in _login_miai
May 28 17:47:57 dreamha hass[23316]: serviceToken = "nonce={}&{}".format(self._serviceLoginAuth2_json['nonce'],self._serviceLoginAuth2_json['ssecurity'])
May 28 17:47:57 dreamha hass[23316]: KeyError: 'nonce'
有相同情况的吗?
|
|