Amazon Australia was warned months ago that a ceiling light for sale had caught fire and melted during a lab test.