- 积分
- 172
- 金钱
- 146
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
注册会员
- 积分
- 172
- 金钱
- 146
- HASS币
- 0
|
发表于 2022-12-10 23:54:31
|
显示全部楼层
此错误来自自定义集成。
Logger: custom_components.openwrt
Source: custom_components/openwrt/data_fetcher.py:76
Integration: openwrt (documentation)
First occurred: 22:35:51 (47 occurrences)
Last logged: 23:33:22
Unexpected error fetching openwrt data: "name='sysauth', domain=None, path=None"
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 225, in _async_refresh
self.data = await self._async_update_data()
File "/config/custom_components/openwrt/__init__.py", line 123, in _async_update_data
sysauth = await self.get_access_token()
File "/config/custom_components/openwrt/__init__.py", line 112, in get_access_token
self._token = await self._fetcher._login_openwrt()
File "/config/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 "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/openwrt/data_fetcher.py", line 76, in requestpost_cookies
resdata = responsedata.cookies["sysauth"]
File "/usr/local/lib/python3.10/site-packages/requests/cookies.py", line 334, in __getitem__
return self._find_no_duplicates(name)
File "/usr/local/lib/python3.10/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"
|
|