frappy_psi.dilhtr: add Ctrlby wrapper

+ minor fix in tcs.py
This commit is contained in:
2025-11-17 15:57:41 +01:00
parent a7b3f23bef
commit e786c5ec77
2 changed files with 5 additions and 1 deletions

View File

@@ -20,6 +20,7 @@
from frappy.core import StringIO, HasIO, Writable, Parameter, FloatRange, IntRange, \
IDLE, ERROR
from frappy.errors import CommunicationFailedError
from frappy.ctrlby import WrapControlledBy
class IO(StringIO):
@@ -72,3 +73,7 @@ class Heater(HasIO, Writable):
if reply != 'h':
raise CommunicationFailedError(f'bad reply from status request: {reply}')
return self.status_map.get(status, (ERROR, 'bad status'))
class WrappedHeater(WrapControlledBy, Heater):
pass

View File

@@ -26,7 +26,6 @@ from frappy.ctrlby import WrapControlledBy
class IO(StringIO):
end_of_line = '\n'
identification = [('ID?', '0\t.*')] # senden: ID?<lf>, Antwort: 0<ht> str version information<lf>
#default_settings = {}
class Heater(HasIO, Writable):