Пример #1
0
 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')
Пример #2
0
 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")
Пример #3
0
 def fsc_set_all_fan_led(self, color):
     for fan, _value in list(self.fans.items()):
         board_fan_actions(self.fans[fan], action=color)