forked from home-assistant/core
Add retry on empty modbus messages for serial protocol (#34678)
This commit is contained in:
committed by
Paulus Schoutsen
parent
f5282bfcf3
commit
36c3c624e7
@@ -188,6 +188,7 @@ class ModbusHub:
|
|||||||
bytesize=self._config_bytesize,
|
bytesize=self._config_bytesize,
|
||||||
parity=self._config_parity,
|
parity=self._config_parity,
|
||||||
timeout=self._config_timeout,
|
timeout=self._config_timeout,
|
||||||
|
retry_on_empty=True,
|
||||||
)
|
)
|
||||||
elif self._config_type == "rtuovertcp":
|
elif self._config_type == "rtuovertcp":
|
||||||
self._client = ModbusTcpClient(
|
self._client = ModbusTcpClient(
|
||||||
|
Reference in New Issue
Block a user