feature: Add every whatsminer type known to man (or at least microBT).

This commit is contained in:
UpstreamData
2023-01-30 13:07:35 -07:00
parent 6ad750d3e9
commit b9ca810903
94 changed files with 3793 additions and 248 deletions

View File

@@ -36,6 +36,7 @@ class HashBoard:
expected_chips: The ideal chip count of the board as an int.
missing: Whether the board is returned from the miners data as a bool.
"""
slot: int = 0
hashrate: float = 0.0
temp: int = -1

View File

@@ -52,9 +52,7 @@ class WhatsminerError:
elif "n" in select_err_subtype:
return select_err_subtype[
"n" # noqa: picks up `select_err_subtype["n"]` as not being numeric?
].replace(
"{n}", str(err_value)
)
].replace("{n}", str(err_value))
else:
return "Unknown error type."
elif "n" in select_err_type: