- 积分
- 162
- 金钱
- 143
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
注册会员
- 积分
- 162
- 金钱
- 143
- HASS币
- 0
|
发表于 2023-6-5 23:35:05
|
显示全部楼层
大佬,我是istoreos的openwrt,ha装在二级路由的群晖,安装之后也是一直显示:正在重试设置:none。
日志提示如下:
此错误来自自定义集成。
Logger: custom_components.openwrt
Source: custom_components/openwrt/data_fetcher.py:76
Integration: openwrt (documentation, issues)
First occurred: 23:24:22 (4 occurrences)
Last logged: 23:25:15
Unexpected error fetching openwrt data: "name='sysauth', domain=None, path=None"
Traceback (most recent call last):
File "/var/packages/HomeAssistant/target/lib/python3.11/site-packages/homeassistant/helpers/update_coordinator.py", line 258, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/packages/HomeAssistant/home/.homeassistant/custom_components/openwrt/__init__.py", line 123, in _async_update_data
sysauth = await self.get_access_token()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/packages/HomeAssistant/home/.homeassistant/custom_components/openwrt/__init__.py", line 112, in get_access_token
self._token = await self._fetcher._login_openwrt()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/packages/HomeAssistant/home/.homeassistant/custom_components/openwrt/data_fetcher.py", line 93, in _login_openwrt
resdata = await self._hass.async_add_executor_job(self.requestpost_cookies, url, header, body)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/packages/python311/target/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/packages/HomeAssistant/home/.homeassistant/custom_components/openwrt/data_fetcher.py", line 76, in requestpost_cookies
resdata = responsedata.cookies["sysauth"]
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
File "/var/packages/HomeAssistant/target/lib/python3.11/site-packages/requests/cookies.py", line 334, in __getitem__
return self._find_no_duplicates(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/packages/HomeAssistant/target/lib/python3.11/site-packages/requests/cookies.py", line 413, in _find_no_duplicates
raise KeyError(f"name={name!r}, domain={domain!r}, path={path!r}")
KeyError: "name='sysauth', domain=None, path=None"
|
|