From 53a3bb13aff7bee88eb244528f9b5f10eb0da75c Mon Sep 17 00:00:00 2001 From: Wilfred Allyn Date: Wed, 1 Jan 2025 10:25:06 -0500 Subject: [PATCH] feature: remove deprecated board_n param from profileset --- pyasic/rpc/luxminer.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pyasic/rpc/luxminer.py b/pyasic/rpc/luxminer.py index f28fa41b..429a9127 100644 --- a/pyasic/rpc/luxminer.py +++ b/pyasic/rpc/luxminer.py @@ -556,20 +556,19 @@ class LUXMinerRPCAPI(BaseMinerRPCAPI): """ return await self.send_command("profiles") - async def profileset(self, board_n: int, profile: str) -> dict: - """Set active profile for a board. + async def profileset(self, profile: str) -> dict: + """Set active profile for the system.
Expand Parameters: - board_n: The board to set the profile on. profile: The profile name to use. Returns: - A confirmation of setting the profile on board_n. + A confirmation of setting the profile.
""" - return await self.send_privileged_command("profileset", board_n, profile) + return await self.send_privileged_command("profileset", profile) async def reboot(self, board_n: int, delay_s: int = None) -> dict: """Reboot a board.