def _WithLock(f):

    def _Inner(self, *args, **kwargs):
      with self._lock:
        ret = f(self, *args, **kwargs)
        if self._testing_validate_state:
          self.VerifyIndexes()
        return ret
    _Inner.__doc__ = f.__doc__
    return _Inner
Return true if the binary sensor is on.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/taskqueue/taskqueue_stub.py/_Queue._WithLock--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/binary_sensor/demo.py/DemoBinarySensor.is_on