bug: fix an issue with 2020 versions of Braiins OS not identifying correctly.
This commit is contained in:
@@ -749,7 +749,9 @@ class MinerFactory:
|
||||
async def get_miner_model_braiins_os(self, ip: str) -> Optional[str]:
|
||||
sock_json_data = await self.send_api_command(ip, "devdetails")
|
||||
try:
|
||||
miner_model = sock_json_data["DEVDETAILS"][0]["Model"]
|
||||
miner_model = sock_json_data["DEVDETAILS"][0]["Model"].replace(
|
||||
"Bitmain ", ""
|
||||
)
|
||||
|
||||
return miner_model
|
||||
except (TypeError, LookupError):
|
||||
|
||||
Reference in New Issue
Block a user