Use custom device assertion in OTA scripts if it is defined