mbuchber / ha_heliotherm

Home Assistant Custom Component for Heliotherm Heatpumps
14 stars 5 forks source link

blocking call to sleep inside the event loop #2

Closed partach closed 1 year ago

partach commented 1 year ago

Hi, HA raised an error after a few days of operation, see below Any idea what could be the cause?

Logger: homeassistant.util.async Source: util/async.py:180 First occurred: 11:00:52 (1 occurrences) Last logged: 11:00:52

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

mbuchber commented 1 year ago

This is due to using the synchronous calls in pyModbus and occurs, when the ModBus call needs too long to complete. It should not really affect the system at all.