def discover(): """Print help and scan devices on screen. :return: None """ click.secho(HELP, fg='yellow') scan_devices(discovery_print, lfilter=lambda d: d.src not in mac_id_list)
def discover(): """Print help and scan devices on screen. :return: None """ print(HELP) scan_devices(discovery_print, lfilter=lambda d: d.src not in mac_id_list)
def run(self, root_allowed=False): """Start daemon mode :param bool root_allowed: Only used for ExecuteCmd :return: loop """ self.root_allowed = root_allowed scan_devices(self.on_push, lambda d: d.src.lower() in self.devices)