

def set_state(self, state):
    '\n        Set the state of this device to on or off.\n        '
    self.basicevent.SetBinaryState(BinaryState=int(self))
    self._state = int(state)

dataset/ETHPy150Open iancmcc/ouimeaux/ouimeaux/device/maker.py Maker.set_state/VarMisuse@24/55 `state`->`self`