mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
Do not return an exception in modbus (#51829)
This commit is contained in:
parent
7e1fec8ee4
commit
77f6d1f5cb
@ -326,7 +326,7 @@ class ModbusHub:
|
|||||||
result = self._call_type[use_call][ENTRY_FUNC](address, value, **kwargs)
|
result = self._call_type[use_call][ENTRY_FUNC](address, value, **kwargs)
|
||||||
except ModbusException as exception_error:
|
except ModbusException as exception_error:
|
||||||
self._log_error(str(exception_error))
|
self._log_error(str(exception_error))
|
||||||
result = exception_error
|
return None
|
||||||
if not hasattr(result, self._call_type[use_call][ENTRY_ATTR]):
|
if not hasattr(result, self._call_type[use_call][ENTRY_ATTR]):
|
||||||
self._log_error(str(result))
|
self._log_error(str(result))
|
||||||
return None
|
return None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user