def METHOD_NAME(self) -> bool:
    """
    Returns True if the the device contains no firmware.
    """
    # We check by comparing the device reported firmware hash.
    # If erased, the firmware is all '\xFF'.
    firmware_v, _ = self.versions()
    empty_firmware = struct.pack("<I", firmware_v) + b"\xFF" * MAX_FIRMWARE_SIZE
    empty_firmware_hash = hashlib.sha256(hashlib.sha256(empty_firmware).digest()).digest()
    reported_firmware_hash, _ = self.get_hashes()
    return empty_firmware_hash == reported_firmware_hash