mirror of
https://github.com/HuFlungDu/pylibmeshctrl.git
synced 2026-02-20 05:32:12 +00:00
refac: I lied, this is the last...
This commit is contained in:
committed by
Josiah Baldwin
parent
748e39d5b4
commit
7ba6989325
@@ -307,13 +307,9 @@ class Device(object):
|
|||||||
bool: True on success, raise otherwise
|
bool: True on success, raise otherwise
|
||||||
|
|
||||||
Raises:
|
Raises:
|
||||||
:py:class:`~meshctrl.exceptions.ServerError`: Error text from server if there is a failure
|
|
||||||
:py:class:`~meshctrl.exceptions.SocketError`: Info about socket closure
|
:py:class:`~meshctrl.exceptions.SocketError`: Info about socket closure
|
||||||
asyncio.TimeoutError: Command timed out
|
asyncio.TimeoutError: Command timed out
|
||||||
'''
|
'''
|
||||||
if isinstance(nodeids, str):
|
|
||||||
nodeids = [nodeids]
|
|
||||||
|
|
||||||
return self._session.remove_devices(self.nodeid, timeout)
|
return self._session.remove_devices(self.nodeid, timeout)
|
||||||
|
|
||||||
async def sleep(self, timeout=None):
|
async def sleep(self, timeout=None):
|
||||||
|
|||||||
@@ -1064,7 +1064,7 @@ class Session(object):
|
|||||||
|
|
||||||
async def remove_devices(self, nodeids, timeout=None):
|
async def remove_devices(self, nodeids, timeout=None):
|
||||||
'''
|
'''
|
||||||
Remove device from MeshCentral
|
Remove device(s) from MeshCentral
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
nodeids (str|list[str]): nodeid(s) of the device(s) that have to be removed
|
nodeids (str|list[str]): nodeid(s) of the device(s) that have to be removed
|
||||||
|
|||||||
Reference in New Issue
Block a user