bug: fix identifying stock as bosminer.

This commit is contained in:
Upstream Data
2022-11-13 16:22:57 -07:00
parent db780fe876
commit d2400bf44e

View File

@@ -435,8 +435,9 @@ class MinerFactory(metaclass=Singleton):
if devdetails:
if devdetails == {"Msg": "Disconnected"}:
model = await self.__get_model_from_graphql(ip)
api = "BOSMiner+"
return model, api, ver
if model:
api = "BOSMiner+"
return model, api, ver
for _devdetails_key in ["Model", "Driver"]:
try: