Skip to content

Commit 6ba2dcb

Browse files
committed
added M5 specific graphing
1 parent 0ecb1a7 commit 6ba2dcb

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

hush/tabs/control.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ def _add(self):
3737
ctrl_type = host(self.host).get("speed", "None")
3838
if ctrl_type == "Dell iDRAC 9":
3939
iDrac9Control(self.host, sensor, column)
40-
elif ctrl_type == "Cisco M3" or ctrl_type == "Cisco M4" or ctrl_type == "Cisco M5":
41-
CiscoControl(self.host, sensor, column)
40+
elif ctrl_type == "Cisco M3" or ctrl_type == "Cisco M4":
41+
CiscoControlM3M4(self.host, sensor, column)
42+
elif ctrl_type == "Cisco M5":
43+
CiscoControlM5(self.host, sensor, column)
4244
else:
4345
PwmControl(self.host, sensor, column)
4446

@@ -285,7 +287,13 @@ def _modes(self):
285287
return ["Off", "Low", "Medium", "High", "Max"]
286288

287289

288-
class CiscoControl(ModeControl):
290+
class CiscoControlM3M4(ModeControl):
289291
@property
290292
def _modes(self):
291293
return ["Low Power", "Balanced", "Performance", "High Power", "Max Power"]
294+
295+
296+
class CiscoControlM5(ModeControl):
297+
@property
298+
def _modes(self):
299+
return ["Acoustic", "Low Power", "Balanced", "High Power", "Max Power"]

0 commit comments

Comments
 (0)