def process_line(self, line):
    event = parse_syslog_line(line.rstrip('\n'))
    if (not event):
        return
    _LOGGER.info('%r', event)
    mac = event.mac.replace(':', '')
    if event.is_sta:
        self.wireless_devices.add(mac)
    device = self.devices.get(mac)
    if (not device):
        device = self.devices[mac] = mac
    consider_home = None
    state = event.kind
    if (event.kind == 'timeout'):
        state = 'not_home'
        consider_home = timedelta(minutes=5)
    if (self.debug_marked.get(device) != state):
        _LOGGER.info('Mark %r as %r [%s]', device, state, consider_home)
        self.debug_marked[device] = state
    self.hass.async_add_job(self.async_see(dev_id=device, source_type=SOURCE_TYPE_ROUTER, mac=event.mac, location_name=state))
def process_line(self, line):
    event = parse_syslog_line(line.rstrip('\n'))
    if (not event):
        return
    _LOGGER.info('%r', event)
    mac = event.mac.replace(':', )
    if event.is_sta:
        self.wireless_devices.add(mac)
    device = self.devices.get(mac)
    if (not device):
        device = self.devices[mac] = mac
    consider_home = None
    state = event.kind
    if (event.kind == 'timeout'):
        state = 'not_home'
        consider_home = timedelta(minutes=5)
    if (self.debug_marked.get(device) != state):
        _LOGGER.info('Mark %r as %r [%s]', device, state, consider_home)
        self.debug_marked[device] = state
    self.hass.async_add_job(self.async_see(dev_id=device, source_type=SOURCE_TYPE_ROUTER, mac=event.mac, location_name=state))