code: def precision(precision, id_, hwid, type_):
      
      if id_ and (hwid or type_):
          raise click.BadOptionUsage(
              "If --id is given --hwid and --type are not allowed."
          )
  
      if id_:
          try:
              sensor = W1ThermSensor.get_available_sensors()[id_ - 1]
          except IndexError:
              raise click.BadOptionUsage(
                  "No sensor with id {0} available. "
                  "Use the ls command to show all available sensors.".format(id_)
              )
      else:
          sensor = W1ThermSensor(type_, hwid)
  
      sensor.set_precision(precision, persist=True)
docs: Change the precision for the sensor and persist it in the sensor's EEPROM