from __future__ import annotations from ..model import Capabilities, WifiState from ..notifier import ChangeNotifier class Backend(ChangeNotifier): name = "" capabilities = Capabilities() def state(self) -> WifiState: raise NotImplementedError async def set_wifi_enabled(self, enabled: bool) -> None: raise NotImplementedError async def scan(self) -> None: raise NotImplementedError async def connect_to(self, network_id: str, passphrase: str | None = None) -> None: raise NotImplementedError async def disconnect_from(self, network_id: str) -> None: raise NotImplementedError async def forget(self, network_id: str) -> None: raise NotImplementedError async def set_auto_connect(self, network_id: str, enabled: bool) -> None: raise NotImplementedError