|
本帖最后由 yuqiuyi99 于 2019-3-12 20:21 编辑
超级版主的大作:[插件发布] 【AsusWrt】自制路由器信息插件,支持华硕梅林,5月13日更新 https://bbs.hassbian.com/thread-3697-1-1.html简直不要太方便,我不想在路由器里设置太多东西,刚好超版做了这个插件。 我一直用了半年很是方便。也不知几何起,大概估计应该就是半个月一个月左右吧,突然就不能用了,中间有过custom_components目录下互换文件名,这个到应该不是问题,可也不知道为毛就是用不了了。
大伙都能用么?我的华硕ac1900p(基本等同于ac68u),ssh用其他方式都能登录,也不知道什么原因,就是hass里突然没了
能用的帮忙赐教,实在是找不出神原因.......
贴个报错信息: [homeassistant.components.sensor] asuswrt: Error on device update![size=13.3333px]Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 248, in _async_add_entity await entity.async_device_update(warning=False) File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 348, 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/local/lib/python3.7/site-packages/homeassistant/util/__init__.py", line 224, in wrapper result = method(*args, **kwargs) File "/config/custom_components/asussensor/sensor.py", line 292, in _update self._state = get_data_dict(self._connection, _CMD_5GTEMP, _REGEX_5GTEMP).get(self._id) File "/config/custom_components/asussensor/sensor.py", line 514, in get_data_dict lines = connection.run_command(cmd_line) File "/config/custom_components/asussensor/sensor.py", line 386, in run_command from pexpect import pxssh, exceptions File "/config/deps/lib/python3.7/site-packages/pexpect/__init__.py", line 75, in <module> from .pty_spawn import spawn, spawnu File "/config/deps/lib/python3.7/site-packages/pexpect/pty_spawn.py", line 15, in <module> from .spawnbase import SpawnBase File "/config/deps/lib/python3.7/site-packages/pexpect/spawnbase.py", line 218 def expect(self, pattern, timeout=-1, searchwindowsize=-1, async=False):
|
|