A warning has been issued about the dangers of electrical items after a fire gutted a bedroom having been started by an extension lead.