Example #1
0
 def setup(self):
     """Sets all relays to their default state (off)."""
     BluetoothRelayDevice.setup(self)
     # If the Fugu remote does have a power relay attached, turn it on.
     power = 'Power'
     if power in self.relays:
         self.relays[power].set_nc()
Example #2
0
 def clean_up(self):
     """Sets all relays to their default state (off)."""
     BluetoothRelayDevice.clean_up(self)
Example #3
0
 def __init__(self, config, relay_rig):
     BluetoothRelayDevice.__init__(self, config, relay_rig)
     self._ensure_config_contains_relays(button.value for button in Buttons)
Example #4
0
 def __init__(self, config, relay_rig):
     BluetoothRelayDevice.__init__(self, config, relay_rig)
     self._ensure_config_contains_relay(Buttons.ACTION.value)