diff --git a/boneio/modbus/client.py b/boneio/modbus/client.py index 957db6b..46877ba 100644 --- a/boneio/modbus/client.py +++ b/boneio/modbus/client.py @@ -169,7 +169,7 @@ def decode_value(self, payload, value_type): ) try: value = getattr(decoder, _payload_type["f"])() + return value except Exception as e: _LOGGER.error(e) - pass - return value + return None diff --git a/boneio/version.py b/boneio/version.py index a5572b1..04f4496 100644 --- a/boneio/version.py +++ b/boneio/version.py @@ -1,2 +1,2 @@ # flake8: noqa -__version__ = "0.8.0dev12" +__version__ = "0.8.0dev13"