From 675d3922df3b1de1c64adc1ee634bb2bd9311fc9 Mon Sep 17 00:00:00 2001 From: up-n-atom Date: Wed, 13 Sep 2023 22:38:56 -0400 Subject: [PATCH] Remove example.py --- example.py | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 example.py diff --git a/example.py b/example.py deleted file mode 100644 index c1c5be5..0000000 --- a/example.py +++ /dev/null @@ -1,33 +0,0 @@ -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 - - # Print device information of Sagemcom F@st router -# device_info = await client.get_device_info() -# print(f"{device_info.id} {device_info.model_name}") - - # Print connected devices -# devices = await client.get_hosts() - -# for device in devices: -# if device.active: -# print(f"{device.id} - {device.name}") - - # Retrieve values via XPath notation, output is a dict - custom_command_output = await client.get_value_by_xpath('Device/Services/BellNetworkCfg') - - dump(custom_command_output) - -# await client.set_value_by_xpath("Device/Services/BellNetworkCfg/SetBridgeMode", "on") - - -asyncio.run(main())