Searched refs:command_resource (Results 1 – 2 of 2) sorted by relevance
67 def create_command(self, command_resource): argument74 device_id = command_resource.get('deviceId', None)83 if 'name' not in command_resource:88 logging.info('Received command %s', command_resource['name'])93 command_resource['id'] = command_id94 command_resource['state'] = constants.QUEUED_STATE95 self.device_commands[device_id][command_id] = command_resource96 return command_resource
160 command_resource = {166 self._command_client.create_command(device_id, command_resource)