Compare commits

..

3 Commits

Author SHA1 Message Date
UpstreamData
e9f54eec0a version: bump version number. 2022-11-30 10:01:27 -07:00
UpstreamData
fbbbc9f215 bug: Add VH60 to miner factory as it was missing. 2022-11-30 10:01:01 -07:00
UpstreamData
69e4f575c0 bug: fix a bug wth bosminer where it will sometimes not get data from graphql 2022-11-30 09:59:12 -07:00
3 changed files with 4 additions and 1 deletions

View File

@@ -548,6 +548,8 @@ class BOSMiner(BaseMiner):
if not query_data: if not query_data:
return None return None
query_data = query_data["data"] query_data = query_data["data"]
if not query_data:
return None
data.mac = await self.get_mac() data.mac = await self.get_mac()
data.model = await self.get_model() data.model = await self.get_model()

View File

@@ -190,6 +190,7 @@ MINER_CLASSES = {
"BTMiner": BTMinerM30SPlusPlus, "BTMiner": BTMinerM30SPlusPlus,
"G40": BTMinerM30SPlusPlusVG40, "G40": BTMinerM30SPlusPlusVG40,
"G30": BTMinerM30SPlusPlusVG30, "G30": BTMinerM30SPlusPlusVG30,
"H60": BTMinerM30SPlusPlusVH60,
}, },
"M31S": { "M31S": {
"Default": BTMinerM31S, "Default": BTMinerM31S,

View File

@@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "pyasic" name = "pyasic"
version = "0.22.1" version = "0.22.2"
description = "A set of modules for interfacing with many common types of ASIC bitcoin miners, using both their API and SSH." description = "A set of modules for interfacing with many common types of ASIC bitcoin miners, using both their API and SSH."
authors = ["UpstreamData <brett@upstreamdata.ca>"] authors = ["UpstreamData <brett@upstreamdata.ca>"]
repository = "https://github.com/UpstreamData/pyasic" repository = "https://github.com/UpstreamData/pyasic"