From 7a9c9237a3688ad3b9bd4c2a3ec3a1acba38691c Mon Sep 17 00:00:00 2001 From: upstreamdata Date: Sun, 30 Jun 2024 22:03:50 -0600 Subject: [PATCH] bug: fix bitaxe not identifying on some versions, switch to using ASICModel key. --- pyasic/miners/factory.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyasic/miners/factory.py b/pyasic/miners/factory.py index 4963eba1..cbd1e6be 100644 --- a/pyasic/miners/factory.py +++ b/pyasic/miners/factory.py @@ -443,9 +443,9 @@ MINER_CLASSES = { }, MinerTypes.BITAXE: { None: BitAxe, - "SUPRA": BitAxeSupra, - "ULTRA": BitAxeUltra, - "MAX": BitAxeMax, + "BM1368": BitAxeSupra, + "BM1366": BitAxeUltra, + "BM1397": BitAxeMax, }, } @@ -1024,7 +1024,7 @@ class MinerFactory: web_json_data = await self.send_web_command(ip, "/api/system/info") try: - miner_model = web_json_data["devicemodel"] + miner_model = web_json_data["ASICModel"] if miner_model == "": return None