From e86f2b62c599994f752d4d02066ff26b41a87098 Mon Sep 17 00:00:00 2001 From: Wilfred Allyn Date: Thu, 16 Jan 2025 05:36:15 -0500 Subject: [PATCH] docs: fix issues for docs warnings --- pyasic/miners/backends/luxminer.py | 2 +- pyasic/rpc/luxminer.py | 5 +---- pyasic/web/auradine.py | 8 ++++---- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/pyasic/miners/backends/luxminer.py b/pyasic/miners/backends/luxminer.py index 315fcc3f..bec91736 100644 --- a/pyasic/miners/backends/luxminer.py +++ b/pyasic/miners/backends/luxminer.py @@ -151,7 +151,7 @@ class LUXMiner(LuxOSFirmware): bool: True if the firmware upgrade was successfully initiated, False otherwise. """ try: - await self.rpc.upgraderun() + await self.rpc.updaterun() logging.info(f"{self.ip}: Firmware upgrade initiated successfully.") return True diff --git a/pyasic/rpc/luxminer.py b/pyasic/rpc/luxminer.py index e2706e78..85e32d44 100644 --- a/pyasic/rpc/luxminer.py +++ b/pyasic/rpc/luxminer.py @@ -574,9 +574,6 @@ class LUXMinerRPCAPI(BaseMinerRPCAPI):
Expand - Parameters: - session_id: Session id from the logon command. - Returns: Confirmation of logging off a session.
@@ -844,7 +841,7 @@ class LUXMinerRPCAPI(BaseMinerRPCAPI): """ return await self.send_privileged_command("voltageset", board_n, voltage) - async def upgraderun(self): + async def updaterun(self) -> dict: """ Send the 'updaterun' command to the miner. diff --git a/pyasic/web/auradine.py b/pyasic/web/auradine.py index bda5b19c..ea1f1c7e 100644 --- a/pyasic/web/auradine.py +++ b/pyasic/web/auradine.py @@ -268,11 +268,11 @@ class AuradineWebAPI(BaseWebAPI): """ return await self.send_command("mode") - async def set_mode(self, **kwargs) -> dict: + async def set_mode(self, **kwargs: Any) -> dict: """Set the operational mode of the Auradine miner. Args: - **kwargs: Mode settings specified as keyword arguments. + **kwargs (Any): Mode settings specified as keyword arguments. Returns: dict: A dictionary indicating the result of the mode setting operation. @@ -287,11 +287,11 @@ class AuradineWebAPI(BaseWebAPI): """ return await self.send_command("network") - async def set_network(self, **kwargs) -> dict: + async def set_network(self, **kwargs: Any) -> dict: """Set the network configuration of the Auradine miner. Args: - **kwargs: Network settings specified as keyword arguments. + **kwargs (Any): Network settings specified as keyword arguments. Returns: dict: A dictionary indicating the result of the network configuration.