- 积分
- 181
- 金钱
- 173
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
注册会员
- 积分
- 181
- 金钱
- 173
- HASS币
- 0
|
发表于 2024-7-2 13:05:36
|
显示全部楼层
本帖最后由 xara 于 2024-7-2 13:45 编辑
点击“同步设备”出错:
WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'havcs' at custom_components/havcs/http.py, line 400: save_yaml(self._hass.data[INTEGRATION][CONF_DEVICE_CONFIG_PATH], self._hass.data[INTEGRATION][DATA_HAVCS_ITEMS]) (offender: /usr/src/homeassistant/homeassistant/util/yaml/dumper.py, line 36: with open(path, "w", encoding="utf-8") as outfile, please report it to the author of the 'havcs' custom integrationTraceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module>
sys.exit(main())
File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main
exit_code = runner.run(runtime_conf)
File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run
return loop.run_until_complete(setup_and_run_hass(runtime_config))
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 672, in run_until_complete
self.run_forever()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 639, in run_forever
self._run_once()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1988, in _run_once
handle._run()
File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 452, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 543, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_middlewares.py", line 114, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 210, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 85, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware
response = await handler(request)
File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle
result = await handler(request, **request.match_info)
File "/config/custom_components/havcs/http.py", line 400, in post
save_yaml(self._hass.data[INTEGRATION][CONF_DEVICE_CONFIG_PATH], self._hass.data[INTEGRATION][DATA_HAVCS_ITEMS])
|
|