- 积分
- 261
- 金钱
- 247
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
中级会员
- 积分
- 261
- 金钱
- 247
- HASS币
- 0
|
发表于 2021-4-8 18:50:53
|
显示全部楼层
大神,新手求助,最新版2021.4.0 ha,按你的教程,出现如下错误,核对过几次,ip,token肯定没错,在ha里ping 窗帘ip也能通。
窗帘型号是 绿米A1wifi版,lumi.curtain.hagl08
2021-04-09 02:45:18 WARNING (MainThread) [homeassistant.loader] You are using a custom integration mijia_curtain which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2021-04-09 02:45:18 WARNING (MainThread) [homeassistant.loader] No 'version' key in the manifest file for custom integration 'mijia_curtain'. As of Home Assistant 2021.6, this integration will no longer be loaded. Please report this to the maintainer of 'mijia_curtain'
2021-04-09 02:45:19 ERROR (MainThread) [homeassistant.components.cover] Error while setting up mijia_curtain platform for cover
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 205, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/mijia_curtain/cover.py", line 159, in setup_platform
cover = MijiaCurtain(name, host, token, model)
File "/config/custom_components/mijia_curtain/cover.py", line 255, in __init__
self.miotDevice = MiotDevice(ip=host, token=token, mapping=self._mapping)
TypeError: __init__() got an unexpected keyword argument 'mapping' |
|