bug: fix bitaxe not identifying on some versions, switch to using ASICModel key.

This commit is contained in:
upstreamdata
2024-06-30 22:03:50 -06:00
parent ee1eece181
commit 7a9c9237a3

View File

@@ -443,9 +443,9 @@ MINER_CLASSES = {
}, },
MinerTypes.BITAXE: { MinerTypes.BITAXE: {
None: BitAxe, None: BitAxe,
"SUPRA": BitAxeSupra, "BM1368": BitAxeSupra,
"ULTRA": BitAxeUltra, "BM1366": BitAxeUltra,
"MAX": BitAxeMax, "BM1397": BitAxeMax,
}, },
} }
@@ -1024,7 +1024,7 @@ class MinerFactory:
web_json_data = await self.send_web_command(ip, "/api/system/info") web_json_data = await self.send_web_command(ip, "/api/system/info")
try: try:
miner_model = web_json_data["devicemodel"] miner_model = web_json_data["ASICModel"]
if miner_model == "": if miner_model == "":
return None return None