strip file output when checking for fault light in bosminer

This commit is contained in:
UpstreamData
2022-09-06 11:18:17 -06:00
parent 03b9a90f68
commit 62d664a14c

View File

@@ -234,7 +234,9 @@ class BOSMiner(BaseMiner):
async def check_light(self) -> bool:
if self.light:
return self.light
data = await self.send_ssh_command("cat /sys/class/leds/'Red LED'/delay_off")
data = (
await self.send_ssh_command("cat /sys/class/leds/'Red LED'/delay_off")
).strip()
self.light = False
if data == "50":
self.light = True