(self, ssid)
| 341 | final_networks = sorted(deduped.values(), key=lambda x: x.get('signal', 0), reverse=True) |
| 342 | logger_target.info(f"iwlist scan discovered {len(final_networks)} networks on {interface}") |
| 343 | return final_networks |
| 344 | |
| 345 | def _set_current_ssid(self, ssid): |
| 346 | """Update current SSID and propagate to storage with debounce. |
| 347 | |
| 348 | First-time establishment (no active network yet) propagates immediately |
| 349 | so the per-network DB switches before the next scan cycle. Subsequent |
| 350 | *changes* between known SSIDs are debounced: a transient misread of |
| 351 | the SSID (common during roaming on Pi Zero) used to trip |
no test coverage detected