def fsc_fan_action(self, fan, action): ''' Method invokes board actions for a fan. ''' if 'dead' in action: board_fan_actions(fan, action='dead') board_fan_actions(fan, action='led_red') if 'recover' in action: board_fan_actions(fan, action='recover') board_fan_actions(fan, action='led_blue')
def fsc_fan_action(self, fan, action): """ Method invokes board actions for a fan. """ if "dead" in action: board_fan_actions(fan, action="dead") board_fan_actions(fan, action="led_red") if "recover" in action: board_fan_actions(fan, action="recover") board_fan_actions(fan, action="led_blue")
def fsc_set_all_fan_led(self, color): for fan, _value in list(self.fans.items()): board_fan_actions(self.fans[fan], action=color)