

def get_state(self, force_update=False):
    '\n        Returns 0 if off and 1 if on.\n        '
    if (force_update or (self._state is None)):
        return int(self.maker_attribs.get('switchstate', 0))
    return self._state

dataset/ETHPy150Open iancmcc/ouimeaux/ouimeaux/device/maker.py Maker.get_state/original