u/mikedash has a recent answer that discusses possible origins of the use of "Hun" to refer to Germans around the time of the First World War.