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)
def send_command(command): logging.critical('#####################################\n## THIS IS DEPRECATED - DO NOT USE ##\n#####################################') sendCommand(command) '''
def send_command(command): logging.critical( '#####################################\n## THIS IS DEPRECATED - DO NOT USE ##\n#####################################' ) sendCommand(command) '''