class OnOffCommand(eg.ActionClass):

    def __call__(self, deviceCode):
        self.plugin.doOnOffCommand(deviceCode)