Skip to content

Commit b367b2d

Browse files
committed
bug: fix an issue with parsing disabled fan mode on BOS+
1 parent 96f52a4 commit b367b2d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pyasic/config/fans.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,12 @@ def from_boser(cls, grpc_miner_conf: dict):
308308
if "minimumRequiredFans" in keys:
309309
conf["minimum_fans"] = int(temperature_conf["minimumRequiredFans"])
310310
return cls.manual(**conf)
311+
if "disabled" in keys:
312+
conf = {}
313+
if "fanSpeedRatio" in temperature_conf["disabled"].keys():
314+
conf["speed"] = int(temperature_conf["disabled"]["fanSpeedRatio"])
315+
return cls.manual(**conf)
316+
return cls.default()
311317

312318
@classmethod
313319
def from_auradine(cls, web_fan: dict):

0 commit comments

Comments
 (0)