|
发表于 2020-4-4 16:07:22
|
显示全部楼层
提示错误 请问是什么原因?
asuswrt2: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 312, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 476, in async_device_update
await self.hass.async_add_executor_job(self.update)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 240, in wrapper
result = method(*args, **kwargs)
File "/config/custom_components/asuswrt2/sensor.py", line 295, in _update
self._state = get_data_dict(self._connection, _CMD_24GTXPWR, _REGEX_24GTXPWR).get(self._id)
File "/config/custom_components/asuswrt2/sensor.py", line 514, in get_data_dict
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.7/site-packages/pexpect/__init__.py", line 75, in <module>
from .pty_spawn import spawn, spawnu
File "/usr/local/lib/python3.7/site-packages/pexpect/pty_spawn.py", line 15, in <module>
from .spawnbase import SpawnBase
File "/usr/local/lib/python3.7/site-packages/pexpect/spawnbase.py", line 218
def expect(self, pattern, timeout=-1, searchwindowsize=-1, async=False):
^
SyntaxError: invalid syntax |
|