bug: pass atmset param as bool

This commit is contained in:
Wilfred Allyn
2025-04-01 10:18:06 +00:00
committed by Brett Rowan
parent 336bd9c002
commit a4352816ee

View File

@@ -192,10 +192,10 @@ class LUXMiner(LuxOSFirmware):
try: try:
if await self.atm_enabled(): if await self.atm_enabled():
re_enable_atm = True re_enable_atm = True
await self.rpc.atmset("enabled=false") await self.rpc.atmset(enabled=False)
result = await self.rpc.profileset(new_preset) result = await self.rpc.profileset(new_preset)
if re_enable_atm: if re_enable_atm:
await self.rpc.atmset("enabled=true") await self.rpc.atmset(enabled=True)
except APIError: except APIError:
raise raise
except Exception as e: except Exception as e: