Ejemplo n.º 1
0
  def __init__(self, deviceID, command, routine=False, force=False, source=None, send_event=True):
    from core import sendCommand
    self._deviceID = deviceID
    self._command = command
    self._routine = routine
    self._force = force
    self._source = source
    self._send_event = send_event
    self._simple = not isinstance(
        command, types.DictType) if command is not None else False
    if self._simple:
      self._command = {command: ''}

    self._result = sendCommand(self)
Ejemplo n.º 2
0
def send_command(command):
  logging.critical('#####################################\n## THIS IS DEPRECATED - DO NOT USE ##\n#####################################')
  sendCommand(command)
  '''
Ejemplo n.º 3
0
def send_command(command):
    logging.critical(
        '#####################################\n## THIS IS DEPRECATED - DO NOT USE ##\n#####################################'
    )
    sendCommand(command)
    '''