- 积分
- 909
- 金钱
- 825
- 威望
- 0
- 贡献
- 0
- HASS币
- 10
高级会员
- 积分
- 909
- 金钱
- 825
- HASS币
- 10
|
发表于 2021-3-24 00:38:57
|
显示全部楼层
大神,我用的Home Assistant 2021.1.1版本,用的咸鱼米家情景开合电机WIFI X版(闲鱼米家电机),从mijia token工具获得型号是:"leshi.curtain.v0001",之前用你的这个模块正常工作过,但是最近重新配置了一下configure文件就不工作了,求大神帮忙看看啊。
Error while setting up mijia_curtain platform for cover
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 199, 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 150, in setup_platform
cover = MijiaCurtain(name, host, token, model)
File "/config/custom_components/mijia_curtain/cover.py", line 246, in __init__
self.miotDevice = MiotDevice(ip=host, token=token, mapping=self._mapping)
TypeError: __init__() got an unexpected keyword argument 'mapping'
一直报这个错
|
|