(self, **config)
return self.last_sync
Synchronize device with HQ
Synchronize device with HQ
Synchronize device with HQ
def sync(self, **config):
        """Synchronize device with HQ"""
        form = self.post_changes()
        # restore
        restore_config = self.get_restore_config(**config)
        payload = restore_config.get_payload().as_string()
        self.last_sync = SyncResult(self, restore_config, payload, form)
        return self.last_sync
def sync ( self , * * config ) : form = self . post_changes ( ) # restore restore_config = self . get_restore_config ( * * config ) payload = restore_config . get_payload ( ) . as_string ( ) self . last_sync = SyncResult ( self , restore_config , payload , form ) return self . last_sync