|
发表于 2022-10-16 20:31:10
|
显示全部楼层
集成安装好后可使用,但homeassistant一旦重启,就出现错误如下:
Logger: root
Source: custom_components/terncy/hub_monitor.py:66
Integration: Terncy
First occurred: 20:26:44 (1 occurrences)
Last logged: 20:26:44
Uncaught thread exception
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/zeroconf/_utils/asyncio.py", line 97, in run_coro_with_timeout
return asyncio.run_coroutine_threadsafe(aw, loop).result(
File "/usr/local/lib/python3.9/concurrent/futures/_base.py", line 448, in result
raise TimeoutError()
concurrent.futures._base.TimeoutError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/threading.py", line 973, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.9/site-packages/zeroconf/_services/browser.py", line 533, in run
self._fire_service_state_changed_event(event)
File "/usr/local/lib/python3.9/site-packages/zeroconf/_services/browser.py", line 416, in _fire_service_state_changed_event
self._service_state_changed.fire(
File "/usr/local/lib/python3.9/site-packages/zeroconf/_services/__init__.py", line 55, in fire
h(**kwargs)
File "/usr/local/lib/python3.9/site-packages/zeroconf/_services/browser.py", line 177, in on_change
getattr(listener, _ON_CHANGE_DISPATCH[state_change])(zeroconf, service_type, name)
File "/config/custom_components/terncy/hub_monitor.py", line 66, in add_service
info = zconf.get_service_info(svc_type, name)
File "/usr/local/lib/python3.9/site-packages/zeroconf/_core.py", line 540, in get_service_info
if info.request(self, timeout, question_type):
File "/usr/local/lib/python3.9/site-packages/zeroconf/_services/info.py", line 462, in request
return bool(run_coro_with_timeout(self.async_request(zc, timeout, question_type), zc.loop, timeout))
File "/usr/local/lib/python3.9/site-packages/zeroconf/_utils/asyncio.py", line 101, in run_coro_with_timeout
raise EventLoopBlocked from ex
zeroconf._exceptions.EventLoopBlocked
|
|