From 2c86b2da7ef2fd6297d345dbaab21bb6b0d86556 Mon Sep 17 00:00:00 2001 From: Upstream Data Date: Fri, 12 Apr 2024 13:16:55 -0600 Subject: [PATCH] feature: Add mara fw light functions. --- pyasic/miners/backends/marathon.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pyasic/miners/backends/marathon.py b/pyasic/miners/backends/marathon.py index 33e97046..8b4e2a16 100644 --- a/pyasic/miners/backends/marathon.py +++ b/pyasic/miners/backends/marathon.py @@ -64,6 +64,14 @@ class MaraMiner(BaseMiner): firmware = "MaraFW" + async def fault_light_off(self) -> bool: + res = await self.web.set_locate_miner(blinking=False) + return res.get("blinking") is False + + async def fault_light_on(self) -> bool: + res = await self.web.set_locate_miner(blinking=True) + return res.get("blinking") is True + async def _get_wattage(self, web_brief: dict = None) -> Optional[int]: if web_brief is None: try: