feature: add support for hiveon S19

This commit is contained in:
Upstream Data
2024-12-10 10:46:23 -07:00
parent 0327d93a35
commit 494d25da97

View File

@@ -427,6 +427,7 @@ MINER_CLASSES = {
None: HiveonModern, None: HiveonModern,
"ANTMINER T9": HiveonT9, "ANTMINER T9": HiveonT9,
"ANTMINER S19JPRO": HiveonS19jPro, "ANTMINER S19JPRO": HiveonS19jPro,
"ANTMINER S19": HiveonS19,
}, },
MinerTypes.LUX_OS: { MinerTypes.LUX_OS: {
None: LUXMiner, None: LUXMiner,
@@ -873,7 +874,7 @@ class MinerFactory:
if miner_type in MINER_CLASSES: if miner_type in MINER_CLASSES:
if miner_model is not None: if miner_model is not None:
warnings.warn( warnings.warn(
f"Partially supported miner found: {miner_model}, please open an issue with miner data " f"Partially supported miner found: {miner_model}, type: {miner_type}, please open an issue with miner data "
f"and this model on GitHub (https://github.com/UpstreamData/pyasic/issues)." f"and this model on GitHub (https://github.com/UpstreamData/pyasic/issues)."
) )
return MINER_CLASSES[miner_type][None](ip) return MINER_CLASSES[miner_type][None](ip)