Pep8 improvements + cleanup
Change-Id: I9052e703b58e93b639c027521b47f693ae853f6e
This commit is contained in:
@ -37,10 +37,14 @@ class Switch(Driveable):
|
||||
'value': PARAM('current state (on or off)',
|
||||
validator=enum(on=1, off=0), default=0),
|
||||
'target': PARAM('wanted state (on or off)',
|
||||
validator=enum(on=1, off=0), default=0,
|
||||
readonly=False),
|
||||
'switch_on_time': PARAM('how long to wait after switching the switch on', validator=floatrange(0, 60), unit='s', default=10, export=False),
|
||||
'switch_off_time': PARAM('how long to wait after switching the switch off', validator=floatrange(0, 60), unit='s', default=10, export=False),
|
||||
validator=enum(on=1, off=0),
|
||||
default=0, readonly=False),
|
||||
'switch_on_time': PARAM('seconds to wait after activating the switch',
|
||||
validator=floatrange(0, 60), unit='s',
|
||||
default=10, export=False),
|
||||
'switch_off_time': PARAM('cool-down time in seconds',
|
||||
validator=floatrange(0, 60), unit='s',
|
||||
default=10, export=False),
|
||||
}
|
||||
|
||||
def init(self):
|
||||
@ -177,8 +181,8 @@ class SampleTemp(Driveable):
|
||||
validator=float, default=10),
|
||||
'sensor': PARAM("Sensor number or calibration id",
|
||||
validator=str, readonly=True),
|
||||
'ramp': PARAM('moving speed in K/min',
|
||||
validator=floatrange(0, 100), unit='K/min', default=0.1, readonly=False),
|
||||
'ramp': PARAM('moving speed in K/min', validator=floatrange(0, 100),
|
||||
unit='K/min', default=0.1, readonly=False),
|
||||
}
|
||||
|
||||
def init(self):
|
||||
|
Reference in New Issue
Block a user