def get_state(self, force_update=False):
if force_update or self._state is None:<EOL><INDENT>return int(self.basicevent.GetBinaryState()['<STR_LIT>'])<EOL><DEDENT>return self._state<EOL>
Returns 0 if off and 1 if on.