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

Method wipe_all_data

wardriving.py:2358–2375  ·  view source on GitHub ↗

Delete all wardriving session databases. Requires wardriving to be stopped.

(self)

Source from the content-addressed store, hash-verified

2356 return c.coordinator_fw
2357 return ''
2358
2359 @property
2360 def _current_esp_mode(self) -> str:
2361 for c in self._companions.values():
2362 if c.connected and c.current_esp_mode:
2363 return 'wardrive' if c.in_wardrive else c.current_esp_mode
2364 return 'wifi'
2365
2366 @property
2367 def _esp_ble_count(self) -> int:
2368 return sum(c.esp_ble_count for c in self._companions.values())
2369
2370 @property
2371 def _esp_zigbee_count(self) -> int:
2372 return sum(c.esp_zigbee_count for c in self._companions.values())
2373
2374 @property
2375 def _esp_alerts(self) -> list:
2376 alerts: list = []
2377 for c in self._companions.values():
2378 alerts.extend(c.esp_alerts)

Callers 1

wardriving_wipe_dataFunction · 0.80

Calls 2

warningMethod · 0.80
infoMethod · 0.80

Tested by

no test coverage detected