Commit ff59761b authored by Antonia Beteva's avatar Antonia Beteva
Browse files

Added state command for the tests of a dummy tango shutter.

parent 997a56e8
......@@ -50,15 +50,21 @@ class Dummy(Device):
@command()
def open(self):
self.set_state(DevState.OPEN)
self._state = DevState.OPEN
@command()
def close(self):
self.set_state(DevState.CLOSE)
self._state = DevState.CLOSE
@command(dtype_out=str)
def status(self):
return "Some Text " + str(self.get_state())
@command(dtype_out="DevState")
def state(self):
return self._state
if __name__ == "__main__":
run((Dummy,))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment