mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +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)
|
||||
except ModbusException as exception_error:
|
||||
self._log_error(str(exception_error))
|
||||
result = exception_error
|
||||
return None
|
||||
if not hasattr(result, self._call_type[use_call][ENTRY_ATTR]):
|
||||
self._log_error(str(result))
|
||||
return None
|
||||
|
Loading…
x
Reference in New Issue
Block a user