We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 750a832 commit 1abcce6Copy full SHA for 1abcce6
classes/transports/modbus_base.py
@@ -85,9 +85,9 @@ def init_after_connect(self):
85
self.update_identifier()
86
87
def connect(self):
88
- # Base class connect method - subclasses should override this
89
- # to establish the actual hardware connection
90
- pass
+ if self.connected and self.first_connect:
+ self.first_connect = False
+ self.init_after_connect()
91
92
def read_serial_number(self) -> str:
93
# First try to read "Serial Number" from input registers (for protocols like EG4 v58)
0 commit comments