- 积分
- 509
- 金钱
- 410
- 威望
- 0
- 贡献
- 0
- HASS币
- 5
高级会员
- 积分
- 509
- 金钱
- 410
- HASS币
- 5
|
发表于 2024-3-25 17:29:38
|
显示全部楼层
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 318, 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.12/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.12/site-packages/requests/cookies.py", line 334, in __getitem__
return self._find_no_duplicates(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/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" |
|