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()
def clean_up(self): """Sets all relays to their default state (off).""" BluetoothRelayDevice.clean_up(self)
def __init__(self, config, relay_rig): BluetoothRelayDevice.__init__(self, config, relay_rig) self._ensure_config_contains_relays(button.value for button in Buttons)
def __init__(self, config, relay_rig): BluetoothRelayDevice.__init__(self, config, relay_rig) self._ensure_config_contains_relay(Buttons.ACTION.value)