- 积分
- 461
- 金钱
- 372
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
中级会员
- 积分
- 461
- 金钱
- 372
- HASS币
- 0
|
发表于 2018-12-31 00:07:56
|
显示全部楼层
楼主,我现在的路由器系统是官改1.9,Home Assistant是0.84.6 ,用了你的插件后,运行不起来,有报错帮分析下,谢谢!
Error setting up platform phicomm_k3
Traceback (most recent call last):
File "/opt/lib/python3.7/site-packages/homeassistant/components/device_tracker/__init__.py", line 176, in async_setup_platform
platform.get_scanner, hass, {DOMAIN: p_config})
File "/thread.py", line 57, in run
File "/tmp/share/sda1/root/.homeassistant/custom_components/device_tracker/phicomm_k3.py", line 56, in get_scanner
scanner = PhicommDeviceScanner(config[DOMAIN])
File "/tmp/share/sda1/root/.homeassistant/custom_components/device_tracker/phicomm_k3.py", line 100, in __init__
data = self.connection.get_result()
File "/tmp/share/sda1/root/.homeassistant/custom_components/device_tracker/phicomm_k3.py", line 172, in get_result
from pexpect import pxssh, exceptions
File "/tmp/share/sda1/root/.homeassistant/deps/lib/python3.7/site-packages/pexpect/__init__.py", line 75, in <module>
from .pty_spawn import spawn, spawnu
File "/tmp/share/sda1/root/.homeassistant/deps/lib/python3.7/site-packages/pexpect/pty_spawn.py", line 15, in <module>
from .spawnbase import SpawnBase
File "/tmp/share/sda1/root/.homeassistant/deps/lib/python3.7/site-packages/pexpect/spawnbase.py", line 218
def expect(self, pattern, timeout=-1, searchwindowsize=-1, async=False):
^
SyntaxError: invalid syntax |
|