From b6df394341440d055aee3bb1f361c723d4383312 Mon Sep 17 00:00:00 2001 From: up-n-atom Date: Wed, 13 Sep 2023 20:54:32 -0400 Subject: [PATCH] Remove disable_wifi.py --- disable_wifi.py | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100755 disable_wifi.py diff --git a/disable_wifi.py b/disable_wifi.py deleted file mode 100755 index 0dca8ba..0000000 --- a/disable_wifi.py +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/python3 -import asyncio -from sagemcom_api.client import SagemcomClient -from config_modem import * - -async def main() -> None: - async with await modem() as client: - try: - await client.login() - - except Exception as exception: # pylint: disable=broad-except - print(exception) - return - - for radio in WIFI_RADIOS: - await client.set_value_by_xpath("Device/WiFi/Radios/Radio[Alias='" + radio + "']/Enable", False) - -asyncio.run(main())