『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
123
返回列表 发新帖
楼主: dscao

米家扫拖机器人接入成功了

[复制链接]

1

主题

74

帖子

336

积分

中级会员

Rank: 3Rank: 3

积分
336
金钱
262
HASS币
0
发表于 2022-7-9 16:57:12 | 显示全部楼层
dscao 发表于 2022-7-9 01:21
新版ha记得替换上这里的文件:
https://github.com/nqkdev/home-assistant-vacuum-styj02ym/pull/56 ...

Logger: homeassistant.config
Source: custom_components/miio2/vacuum.py:6
Integration: miio2 (documentation)
First occurred: 16:51:14 (1 occurrences)
Last logged: 16:51:14

Platform error: vacuum
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config.py", line 877, in async_process_component_config
    platform = p_integration.get_platform(domain)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 566, in get_platform
    cache[full_name] = self._import_platform(platform_name)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 583, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/config/custom_components/miio2/vacuum.py", line 6, in <module>
    from miio import DeviceException, Vacuum  # pylint: disable=import-error
ImportError: cannot import name 'Vacuum' from 'miio' (/usr/local/lib/python3.9/site-packages/miio/__init__.py)


太蛋疼了,我看您给那个链接里面还有改懂vacuum.py的地方我没改,报错了。。。
回复

使用道具 举报

1

主题

74

帖子

336

积分

中级会员

Rank: 3Rank: 3

积分
336
金钱
262
HASS币
0
发表于 2022-7-9 17:05:21 | 显示全部楼层
把vacuum.py改完了,可以了。观察一下稳定性,再次谢谢楼主分享。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-29 00:38 , Processed in 0.258445 second(s), 23 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表