From 7ba6989325eda6c5f539e8ea471dff2733fa02d3 Mon Sep 17 00:00:00 2001 From: Daan Selen Date: Tue, 16 Sep 2025 23:16:59 +0200 Subject: [PATCH] refac: I lied, this is the last... --- src/meshctrl/device.py | 4 ---- src/meshctrl/session.py | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/meshctrl/device.py b/src/meshctrl/device.py index adc58b7..ee9a651 100644 --- a/src/meshctrl/device.py +++ b/src/meshctrl/device.py @@ -307,13 +307,9 @@ class Device(object): bool: True on success, raise otherwise Raises: - :py:class:`~meshctrl.exceptions.ServerError`: Error text from server if there is a failure :py:class:`~meshctrl.exceptions.SocketError`: Info about socket closure asyncio.TimeoutError: Command timed out ''' - if isinstance(nodeids, str): - nodeids = [nodeids] - return self._session.remove_devices(self.nodeid, timeout) async def sleep(self, timeout=None): diff --git a/src/meshctrl/session.py b/src/meshctrl/session.py index 57196bd..4638863 100644 --- a/src/meshctrl/session.py +++ b/src/meshctrl/session.py @@ -1064,7 +1064,7 @@ class Session(object): async def remove_devices(self, nodeids, timeout=None): ''' - Remove device from MeshCentral + Remove device(s) from MeshCentral Args: nodeids (str|list[str]): nodeid(s) of the device(s) that have to be removed