Return context for the currently active network.
(self)
| 29 | # Public API |
| 30 | # ------------------------------------------------------------------ |
| 31 | def get_active_context(self) -> Dict[str, str]: |
| 32 | """Return context for the currently active network.""" |
| 33 | if self.active_slug is None: |
| 34 | self.activate_network(self.default_ssid) |
| 35 | return self._build_context(self.active_ssid, self.active_slug or '') |
| 36 | |
| 37 | def activate_network(self, ssid: Optional[str]) -> Dict[str, str]: |
| 38 | """Activate storage for the provided SSID (None => default).""" |
no test coverage detected