amazon_dash/discovery.py
def pkt_text(pkt):
    """Return source mac address for this Scapy Packet

    :param scapy.packet.Packet pkt: Scapy Packet
    :return: Mac address. Include (Amazon Device) for these devices
    :rtype: str
    """
    if pkt.src.upper() in BANNED_DEVICES:
        body = ''
    elif pkt.src.upper()[:8] in AMAZON_DEVICES:
        body = '{} (Amazon Device)'.format(pkt.src)
    else:
        body = pkt.src
    return body
def pkt_text(pkt):
    if pkt.src.upper() in BANNED_DEVICES:
        body = ''
    elif pkt.src.upper()[:8] in AMAZON_DEVICES:
        body = '{} (Amazon Device)'.format(pkt.src)
    else:
        body = pkt.src
    return body
def pkt_text ( pkt ) : if pkt . src . upper ( ) in BANNED_DEVICES : body = '' elif pkt . src . upper ( ) [ : 8 ] in AMAZON_DEVICES : body = '{} (Amazon Device)' . format ( pkt . src ) else : body = pkt . src return body
Return source mac address for this Scapy Packet

    :param scapy.packet.Packet pkt: Scapy Packet
    :return: Mac address. Include (Amazon Device) for these devices
    :rtype: str
Return source mac address for this Scapy Packet