Compare commits

..

4 Commits

Author SHA1 Message Date
Upstream Data
0d1c8d80e0 version: bump version number 2024-12-10 10:46:44 -07:00
Upstream Data
494d25da97 feature: add support for hiveon S19 2024-12-10 10:46:23 -07:00
Upstream Data
0327d93a35 version: bump version number 2024-12-10 10:29:18 -07:00
Upstream Data
680584c468 bug: fix pydantic validation error with hashrate tuning 2024-12-10 10:28:55 -07:00
3 changed files with 5 additions and 4 deletions

View File

@@ -252,9 +252,9 @@ class MiningModeHashrateTune(MinerConfigValue):
arbitrary_types_allowed = True
mode: str = field(init=False, default="hashrate_tuning")
hashrate: int = None
hashrate: int | None = None
algo: TunerAlgoType = field(default_factory=TunerAlgo.default)
scaling: ScalingConfig = None
scaling: ScalingConfig | None = None
@classmethod
def from_dict(cls, dict_conf: dict | None) -> "MiningModeHashrateTune":

View File

@@ -427,6 +427,7 @@ MINER_CLASSES = {
None: HiveonModern,
"ANTMINER T9": HiveonT9,
"ANTMINER S19JPRO": HiveonS19jPro,
"ANTMINER S19": HiveonS19,
},
MinerTypes.LUX_OS: {
None: LUXMiner,
@@ -873,7 +874,7 @@ class MinerFactory:
if miner_type in MINER_CLASSES:
if miner_model is not None:
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)."
)
return MINER_CLASSES[miner_type][None](ip)

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "pyasic"
version = "0.65.0"
version = "0.65.2"
description = "A simplified and standardized interface for Bitcoin ASICs."
authors = ["UpstreamData <brett@upstreamdata.ca>"]
repository = "https://github.com/UpstreamData/pyasic"