feature: add support for S19 Pro Hydro.

This commit is contained in:
Upstream Data
2023-12-22 15:40:23 -07:00
parent 550b4a97a1
commit 040c0b6842
5 changed files with 18 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ from pyasic.miners.types import (
S19jPro,
S19Plus,
S19Pro,
S19ProHydro,
S19ProPlus,
)
@@ -77,3 +78,7 @@ class BMMinerS19jPro(AntminerModern, S19jPro):
class BMMinerS19L(AntminerModern, S19L):
pass
class BMMinerS19ProHydro(AntminerModern, S19ProHydro):
pass

View File

@@ -25,6 +25,7 @@ from .S19 import (
BMMinerS19L,
BMMinerS19Plus,
BMMinerS19Pro,
BMMinerS19ProHydro,
BMMinerS19ProPlus,
BMMinerS19XP,
)

View File

@@ -92,6 +92,7 @@ MINER_CLASSES = {
"ANTMINER S19 XP": BMMinerS19XP,
"ANTMINER S19A": BMMinerS19a,
"ANTMINER S19A PRO": BMMinerS19aPro,
"ANTMINER S19 PRO HYD.": BMMinerS19ProHydro,
"ANTMINER T19": BMMinerT19,
},
MinerTypes.WHATSMINER: {

View File

@@ -159,3 +159,13 @@ class S19kProNoPIC(AntMiner): # noqa - ignore ABC method implementation
self.model = "S19k Pro No PIC"
self.expected_chips = 77
self.fan_count = 4
class S19ProHydro(AntMiner): # noqa - ignore ABC method implementation
def __init__(self, ip: str, api_ver: str = "0.0.0"):
super().__init__(ip, api_ver)
self.ip = ip
self.model = "S19 Pro Hydro"
self.expected_chips = 180
self.expected_hashboards = 4
self.fan_count = 0

View File

@@ -30,6 +30,7 @@ from .S19 import (
S19NoPIC,
S19Plus,
S19Pro,
S19ProHydro,
S19ProPlus,
)
from .T19 import T19