code: def reset(self, required=False):
          
          reset = self._ow.reset()
          if required and reset:
              raise OneWireError("No presence pulse found. Check devices and wiring.")
          return not reset
docs: Perform a reset and check for presence pulse.
  
          :param bool required: require presence pulse