'Return the name of the given device or None if we don\'t know.'

def get_device_name(self, mac):

    try:
        return next((device.name for device in self.last_results if (device.mac == mac)))
    except StopIteration:
        return None
