diff --git a/pyLSV2/client.py b/pyLSV2/client.py index 064c2ca..d807725 100644 --- a/pyLSV2/client.py +++ b/pyLSV2/client.py @@ -70,7 +70,7 @@ def versions(self) -> ld.VersionInfo: """version information of the connected control""" return self._versions - @property + @property def parameters(self) -> ld.SystemParameters: """system parameters of the connected control""" return self._sys_par diff --git a/pyLSV2/const.py b/pyLSV2/const.py index 6402089..152a538 100644 --- a/pyLSV2/const.py +++ b/pyLSV2/const.py @@ -98,6 +98,7 @@ class ControlType(Enum): MILLPLUS = 6 """the MILLPlusIT V600 is officially""" + class Login(str, Enum): """Enum for the different login roles""" diff --git a/pyLSV2/dat_cls.py b/pyLSV2/dat_cls.py index 7243121..79179bd 100644 --- a/pyLSV2/dat_cls.py +++ b/pyLSV2/dat_cls.py @@ -31,7 +31,6 @@ def __init__(self): self._ncsw_reg = re.compile(r"(?P\d{5})(?P\d)(?:[ -])(?P\d+)(?: (?P.*))?") - def __str__(self) -> str: return "%s / %s" % (self.control, self.nc_sw) diff --git a/pyLSV2/scripts/demo.py b/pyLSV2/scripts/demo.py index e30e37d..976014f 100644 --- a/pyLSV2/scripts/demo.py +++ b/pyLSV2/scripts/demo.py @@ -63,7 +63,7 @@ def comprehensive_demo(): if con.versions.nc_sw_type == 4: print("# Reading time and date on a windows programming station is not supported") elif con.versions.nc_sw_base == 538950: - print("# Reading time and date on a windows MILLplusIT programming station is not supported") + print("# Reading time and date on a windows MILLplusIT programming station is not supported") else: print("# Time and date: {:}".format(con.get_remote_datetime()))