bug: fix bosminer sometimes not being able to set config due to temp settings not being set.

This commit is contained in:
Upstream Data
2024-05-03 11:19:33 -06:00
parent 2d029b65e6
commit 836d045b65
2 changed files with 6 additions and 0 deletions

View File

@@ -176,11 +176,14 @@ class BOSMiner(BaseMiner):
self.config = cfg
except toml.TomlDecodeError as e:
raise APIError("Failed to decode toml when getting config.") from e
except TypeError as e:
raise APIError("Failed to decode toml when getting config.") from e
return self.config
async def send_config(self, config: MinerConfig, user_suffix: str = None) -> None:
self.config = config
print(config)
parsed_cfg = config.as_bosminer(user_suffix=user_suffix)
toml_conf = toml.dumps(