def serial_number_hash(data: str) -> str:
    """Hashes any string to 6 bytes serial number

    Example: 'PyHAP' -> '3331779EC7A8'

    Hash function is BLAKE2b with 6 bytes digest size
    """
    h = blake2b(digest_size=6)  # type: ignore
    h.update(data.encode())
    return h.hexdigest().upper()