updated the gui to get the model
This commit is contained in:
@@ -12,6 +12,3 @@ class BaseMiner:
|
||||
self.api = api
|
||||
self.api_type = None
|
||||
self.model = None
|
||||
|
||||
def _init(self):
|
||||
pass
|
||||
|
||||
@@ -27,7 +27,7 @@ class BTMiner(BaseMiner):
|
||||
if host_data:
|
||||
return host_data["Msg"]["hostname"]
|
||||
except APIError:
|
||||
return "BTMiner ?"
|
||||
return "?"
|
||||
|
||||
async def send_config(self, _):
|
||||
return None # ignore for now
|
||||
|
||||
@@ -10,6 +10,9 @@ class UnknownMiner(BaseMiner):
|
||||
def __repr__(self) -> str:
|
||||
return f"Unknown: {str(self.ip)}"
|
||||
|
||||
def get_model(self):
|
||||
return "Unknown"
|
||||
|
||||
async def send_config(self, _):
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user