georgezhao2010/peacefair_energy

HA日志出现警告 Detected blocking call to sleep inside the event loop

Closed this issue · 4 comments

2022-09-02 22:37:50.008 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call to sleep inside the event loop. This is causing stability issues. Please report issue to the custom integration author for peacefair_energy doing blocking calls at custom_components/peacefair_energy/modbus.py, line 88: return self._client.read_input_registers(address, count, **kwargs)

也出现了
日志详细信息( WARNING )
Logger: homeassistant.util.async_
Source: util/async_.py:180
First occurred: 10:43:07 (3812 occurrences)
Last logged: 10:43:09

Detected blocking call to sleep inside the event loop. This is causing stability issues. Please report issue to the custom integration author for peacefair_energy doing blocking calls at custom_components/peacefair_energy/modbus.py, line 88: return self._client.read_input_registers(address, count, **kwargs)

这应该是你们使用的Modbus库中问题,但是目前官方版本的modbus库并不存在这样的问题,你们是HA版本过老呢,还是自己装的modbus库过老?

这应该是你们使用的Modbus库中问题,但是目前官方版本的modbus库并不存在这样的问题,你们是HA版本过老呢,还是自己装的modbus库过老?

ha是最新版2022.9.7 官方的docker镜像,modbus库是linux里面还是ha自带的 ?没动过这玩意

我是TCP连接,esp8266模块刷的esphome-stream-server,会不会是用tcp的问题 ?