Enable or disable scanning over Ethernet.
(self, enabled: bool)
| 186 | def get_ethernet_status(self) -> Dict: |
| 187 | """Get current Ethernet interface status.""" |
| 188 | with self._lock: |
| 189 | active_interface = None |
| 190 | for iface in self.ethernet_interfaces.values(): |
| 191 | # Only consider interfaces with valid (non-link-local) IPs |
| 192 | if (iface.get('connected') and |
| 193 | iface.get('has_carrier') and |
| 194 | iface.get('ip_address') and |
| 195 | not iface.get('is_link_local')): |
| 196 | active_interface = iface |
| 197 | break |
| 198 |
no test coverage detected