- 积分
- 184
- 金钱
- 166
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
注册会员
- 积分
- 184
- 金钱
- 166
- HASS币
- 0
|
发表于 2021-7-23 22:53:17
|
显示全部楼层
我再docker中运行的homeAssistant,抓路由器的信息时出现这个错误,和你上面的有一些相似,不知道啥原因
2021-07-23 14:35:01 ERROR (MainThread) [homeassistant.components.sensor] asuswrt2: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 432, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 601, in async_device_update
await task
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 280, in wrapper
result = method(*args, **kwargs)
File "/config/custom_components/asuswrt2/sensor.py", line 303, in _update
stalist = get_data_list(self._connection, _CMD_5GSTALIST, _REGEX_STALIST, 'mac')
File "/config/custom_components/asuswrt2/sensor.py", line 524, in get_data_list
lines = connection.run_command(cmd_line)
File "/config/custom_components/asuswrt2/sensor.py", line 386, in run_command
from pexpect import pxssh, exceptions
File "/usr/local/lib/python3.9/site-packages/pexpect/__init__.py", line 75, in <module>
from .pty_spawn import spawn, spawnu
File "/usr/local/lib/python3.9/site-packages/pexpect/pty_spawn.py", line 15, in <module>
from .spawnbase import SpawnBase
File "/usr/local/lib/python3.9/site-packages/pexpect/spawnbase.py", line 218
def expect(self, pattern, timeout=-1, searchwindowsize=-1, async=False):
^
SyntaxError: invalid syntax |
|