MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _auto_focus_interface

Method _auto_focus_interface

multi_interface.py:503–513  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

501 return candidate
502
503 def _auto_focus_interface(self) -> Optional[str]:
504 default_iface = self._default_iface
505 with self._lock:
506 if default_iface in self.interfaces:
507 return default_iface
508 for entry in self.interfaces.values():
509 if entry.get('connected') and entry.get('connected_ssid'):
510 return entry.get('name')
511 if self.interfaces:
512 return next(iter(self.interfaces.keys()))
513 return default_iface
514
515 def _refresh_focus_flags(self):
516 focus_name = self.get_focus_interface()

Callers 2

get_focus_jobMethod · 0.95
update_scan_modeMethod · 0.95

Calls 3

valuesMethod · 0.45
getMethod · 0.45
keysMethod · 0.45

Tested by

no test coverage detected