From e160fd21621ea12235c02e798e4f2a4d26be59c9 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Thu, 12 Jun 2025 14:35:51 +0200 Subject: [PATCH] Missing docstrings added --- src/pyhoff/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pyhoff/__init__.py b/src/pyhoff/__init__.py index 1f988a3..82f7e0b 100644 --- a/src/pyhoff/__init__.py +++ b/src/pyhoff/__init__.py @@ -137,9 +137,10 @@ class AnalogInputTerminal(BusTerminal): Args: channel: The channel number (1 based index) to read from. + error_value: Value that is returned in case the modbus read command fails. Returns: - The read word value. + The read word value or provided error_value if read failed. Raises: Exception: If the word offset or count is out of range. @@ -174,6 +175,7 @@ class AnalogOutputTerminal(BusTerminal): Args: channel: The channel number (1 based index) to read from. + error_value: Value that is returned in case the modbus read command fails. Returns: The read word value or provided error_value if read failed.