1 from .command import OnoffCommand
3 def sispmctl_device(sock):
4 """Create an OnoffCommand that controls the specified socket on a sispmctl
8 @param sock: the socket number of the sispmctl controlled device
10 return OnoffCommand(["sispmctl", "-o", "%d" % sock],
11 ["sispmctl", "-f", "%d" % sock])